Hi everyone, can anybody help me to plot?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have this error:
Execution of script plot as a function is not supported:
/MATLAB Drive/plot.m
my code is:
x = linspace(0.5* pi, 1000);
y = sin(x)
Y = fft(y);
plot(Y)
댓글 수: 4
Image Analyst
2021년 6월 12일
Jonas. That looks like an Answer to me, so put it down in the official Answer section below so the poster can accept it and you can get credit for it so you can move from a "Rising Star" to an "MVP".
Jonas
2021년 6월 13일
i will do that, i was not sure about the reason behind the error, that's why i posted it as a proposition as comment.
답변 (1개)
Jonas
2021년 6월 13일
do you execute your code in a script that is called 'plot'? then it will be difficult to use the default matlab plot command inside. dont name your functions / scripts equal to default matlab functions
change your script name to e.g. 'myPlotting' in that case
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!