How to resolve the error: Undefined function or variable 'gensurfOptions'
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Sam Chak
2025 年 4 月 23 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Fuzzy Logic in Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!