필터 지우기
필터 지우기

'Execution of script contour as a function is not supported'

조회 수: 7 (최근 30일)
Finlay Macdonald
Finlay Macdonald 2022년 3월 22일
댓글: Finlay Macdonald 2022년 3월 22일
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.

답변 (1개)

Fangjun Jiang
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
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.
Finlay Macdonald
Finlay Macdonald 2022년 3월 22일
ah i see now, thank you both

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by