1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab code

  1. Apr 13, 2008 #1
    I am working on a matlab code for cross validation.

    I have define the test and training set but I am having trouble using the anfis command. Before carrying out the training using anfis command I need to define the fismat. How do i define fismat?

    My code is as follows:

    load visit1.mat
    V1 = visit1;
    chkData = V1(1,1);
    trnData = V1(2:20,:);
    fismat = genfis1(trnData)
    [fismat1,trnError,ss,fismat2,chkError] = anfis(trnData,fismat,trnOpt,dispOpt,chkData);

    I am trouble on linr 5, it gives me error saying non-existent field 'input'.

    I appreciate any help I can get. Thank you...
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you help with the solution or looking for help too?
Draft saved Draft deleted



Similar Discussions: Matlab code
  1. Matlab codes (Replies: 2)

  2. Matlab code problem (Replies: 14)

  3. Error code in Matlab (Replies: 3)

Loading...