From: Vaibhav on
Hello,

I am trying to train a set of input output data using anfis. There are two inputs and one output. The output basically is given by the following function:-

output = (ln(constant*input1))-(constant*input2)

I am using the following commands for training:-

fismat = genfis1(trndata, 3, 'trimf');
outfis = anfis(trndata, fismat, 50);

However, I get the following error...

??? Error using ==> anfismex
Illegal parameters in fisTriangleMf() --> a > b

Error in ==> anfis at 225
[t_fismat] = ...

Any idea what the error in my program is? or what the error implies? I am not able to understand what is wrong with my code.