How to resolve the error: Undefined function or variable 'gensurfOptions'
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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.
0 comentarios
Respuestas (1)
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'>.
0 comentarios
Ver también
Categorías
Más información sobre Fuzzy Logic in Simulink en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!