Matlab code

by sensitive
Tags: code, matlab
sensitive is offline
Apr13-08, 10:35 PM
P: 35
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...
Phys.Org News Partner Science news on
SensaBubble: It's a bubble, but not as we know it (w/ video)
The hemihelix: Scientists discover a new shape using rubber bands (w/ video)
Microbes provide insights into evolution of human language

Register to reply

Related Discussions
MATLAB code help please.... Math & Science Software 2
Need projectile motion matlab code Math & Science Software 0
Matlab code looking good? EE_Signals Math & Science Software 5
Matlab Code for Convolution ... is this right? Math & Science Software 2
whats wrong with this matlab code? Math & Science Software 8