'Execution of script contour as a function is not supported'
19 ビュー (過去 30 日間)
古いコメントを表示
trying to plot a compressor map with contours, when trying to run my code the error 'Execution of script contour as a function is not supported' shows up.
what does this mean?
my code fo the contour plot is
x = mdot(1,:,1);
y = PR(1,:,1);
[X,Y] = meshgrid(x,y);
Z = e(1,:,1);
contour(X,Y,X)
mdot, PR and e are all 1,5,5 doubles
the error also occurs when trying to run any of the contour examples from matlab.
0 件のコメント
回答 (1 件)
Fangjun Jiang
2022 年 3 月 22 日
You must have a contour.m in the path that is shadowing the built-in function contour(). run
which -all contour
4 件のコメント
Fangjun Jiang
2022 年 3 月 22 日
Run the above command in MATLAB Command Window. It will show you multiple files. You need to rename your own contour.m to something else to avoid the name conflict.
参考
カテゴリ
Help Center および File Exchange で Contour Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!