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

1 visualización (últimos 30 días)
Ivan Peko
Ivan Peko el 31 de Mayo de 2017
Respondida: Sam Chak el 23 de Abr. de 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.

Respuestas (1)

Sam Chak
Sam Chak el 23 de Abr. de 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'>.

Categorías

Más información sobre Fuzzy Logic in Simulink en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by