MATLAB: Trouble with function genfis1

fuzzygenfis1

I am having trouble with the function genfis1. It keeps telling me there is an error in the code of genfis1 itself. I do have the fuzzy toolbox installed…
The error that is given:
Undefined function or variable 'in_n'.
Error in genfis1 (line62)
numMFs=numMFs*ones(1, in_n);
Can somebody tell me why this is happening?

Best Answer

You appear to have accidentally edited your genfis1 file. In R2017b line 58 has
in_n = size(data, 2) - 1;
and you appear to have inserted an 'e' before that.
Related Question