Hi everyone, can anybody help me to plot?

조회 수: 3 (최근 30일)
En Majaa
En Majaa 2021년 6월 12일
답변: Jonas 2021년 6월 13일
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
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
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
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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by