problem with 'sim' for an hopfield net (character recognition task)

Discussion in 'MATLAB' started by Julien Dubois, May 11, 2004.

  1. Hi all,

    I have a little problem with the 'sim' function for an hopfield
    network. Indeed, the network is correctly created and the test of
    stability (check for attractors) is correct also.
    However, when I want to simulate it with this line of code :
    "[Y,Pf,Af] = sim(net,{Q TS},alphabet);
    (with Q, TS, alphabet well instantiated)"
    I receive as a message this foolowing one:
    "??? One or more output arguments not assigned during call to
    'network/sim (simargs)'.

    Error in ==> E:\MATLAB6p5\toolbox\nnet\nnet\@network\sim.m
    On line 184 ==> case 3, [err,P,Pi,Ai,T,Q,TS,matrixForm] =
    simargs(net,P,Pi);

    Error in ==> C:\Documents and Settings\Julien
    Dubois\Bureau\Leuven\ANN\Ex Exam\ex2bMakeNet.m
    On line 52 ==> [Y,Pf,Af] = sim(net,{Q TS},dist_letter_test);
    "

    My real problem is that I found on the web the same message error
    about the 'train' function and the problem was that the file
    'train.m' had to be corrected (the matlab team said "this is a bug in
    the nnet toolbox) and therefore downloaded from a ftp server.

    As I am sure that there is no mistake in my command, it must be the
    same kind of problem.
    So, do you know where can I download such a revised file (a new
    'sim.m' file)?
    Have you got any other idea?

    Thank you very much to all

    NB : here is the interesting parts of my code:
    net = newhop(alphabet); % well created
    Y = sim(net,Nneurons,[ ],alphabet); % test the stability of the net
    --> well done

    [Y,Pf,Af] = sim(net,{Q TS},alphabet); %<--- here is the problem
     
    Julien Dubois, May 11, 2004
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.