How to resolve the error: Undefined function or variable 'gensurfOptions'

1 Ansicht (letzte 30 Tage)
Ivan Peko
Ivan Peko am 31 Mai 2017
Beantwortet: Sam Chak am 23 Apr. 2025
Please, can you tell me why I can't create surface plot from this simple code:
fis = readfis('Wu.fis');
opt = gensurfOptions;
opt.InputIndex = [1 2];
opt.NumGridPoints = 100;
opt.ReferenceInputs = [NaN NaN 2];
gensurf(fis,opt);
I always obtain message:
Undefined function or variable 'gensurfOptions'.
Error in Untitled3 (line 14) opt = gensurfOptions;
I am begineer in matlab and i followed Matlab documentation instructions:
I can't find a problem.
Thank you.

Antworten (1)

Sam Chak
Sam Chak am 23 Apr. 2025
The gensurfOptions() function was introduced in R2017a, and your problem was posted in May 2017. Since the R2017a release, it is allowed to specify options for generating fuzzy inference system output surfaces using gensurf(), by creating the gensurfOptions option set. If my assumption is correct, your MATLAB and Fuzzy Logic Toolbox at that time were not up to date, which likely resulted in the error message: <Undefined function or variable 'gensurfOptions'>.

Kategorien

Mehr zu Fuzzy Logic in Simulink finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by