Effacer les filtres
Effacer les filtres

error using fuzzy interface

2 vues (au cours des 30 derniers jours)
Hossam Mosbah
Hossam Mosbah le 10 Jan 2015
Commenté : Geoff Hayes le 11 Jan 2015
x = (0:0.1:10)';
y = sin(2*x)./exp(x/5);
trnData = [x y];
numMFs = 5;
mfType = 'gbellmf';
outmfType='linear';
epoch_n = 20;
in_fis = genfis1(trnData,numMFs,mfType,outmfType);
out_fis= anfis(trnData,in_fis,epoch_n);
plot(x,y,x,evalfis(x,out_fis));
legend('Training Data','ANFIS Output');
this is the error
Error using subsindex
Function 'subsindex' is not defined for values of class 'struct'.
  1 commentaire
Geoff Hayes
Geoff Hayes le 11 Jan 2015
Hossam - which line of code does this error correspond to? Try copying and pasting the above code into a script or function (m file) and then run it. The error message should now point to the line of code that is throwing the error. Copy and paste that information into your question and hopefully someone will be able to offer some guidance on how to solve the problem.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Fuzzy Logic Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by