Problem with plot function
1 回表示 (過去 30 日間)
古いコメントを表示
I can not run this function, it says that something is wrong with my function. Help? It says that for every function of all my scripts.
I also have x = linspace(-5,5,100) in the script.
0 件のコメント
採用された回答
adeq123
2019 年 10 月 10 日
Hi,
Works for me. Probably you clear your workspace before running this part of the code. Therefore the x is not found.
x = linspace(-5,5,100);
y = (x-1)./(x.^2+x);
plot(x,y);
3 件のコメント
adeq123
2019 年 10 月 10 日
There is no error - like I said, works for me.
My assumtion is that the author of the topic cleared the workspace before running the code and this is why she gets the error.
Image Analyst
2019 年 10 月 10 日
haisong:
For some reason, you forgot to show lines 1 and 2 (where you claim the crucial linspace was called) in the image you posted! Please attach the image showing those lines, or attach the m-file script with the paper clip icon.
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!