09-01-2014 06:31 AM - edited 09-01-2014 06:48 AM
x = (0:0.1:10)';
y = sin(2*x)./exp(x/5);
trnData = [x y];
numMFs = 5;
mfType = 'gbellmf';
epoch_n = 20;
in_fis = genfis1(trnData,numMFs,mfType);
out_fis = anfis(trnData,in_fis,20);
aa = evalfis([x x1],out_fis);
09-01-2014 07:39 AM
now, it's fine
but i also have this probleme
x1 = (0:0.1:20)';
y = sin(2*x1)./exp(x1/5);
trnData = [x1 y];
numMFs = 5;
mfType = 'gbellmf';
epoch_n = 20;
in_fis = genfis1(trnData,numMFs,mfType);
out_fis = anfis(trnData,in_fis,20);
aa = evalfis(x1 ,out_fis);
09-01-2014 09:55 AM
09-01-2014 11:04 AM - edited 09-01-2014 11:36 AM
What do you get if you define the output as a 2D array?
(Or transpose the vector. Remember that matlab has a distinction between row and column vectors and LabVIEW does not). If you create a 2D array, it can be 1xN or Nx1 and you get all elements either way.)