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

1 vue (au cours des 30 derniers jours)
Ivan Peko
Ivan Peko le 31 Mai 2017
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.

Réponses (1)

Sam Chak
Sam Chak le 23 Avr 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'>.

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by