My graph is blank
1 回表示 (過去 30 日間)
古いコメントを表示
The function is n=(m-10)/m for 0(less thab or equal to)m(less than or equal to)5
>> m=0:0.1:5;
>> n=(m-10)/m;
>> plot(m,n);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/202153/image.png)
0 件のコメント
採用された回答
Star Strider
2019 年 1 月 30 日
You need to use element-wise division:
m=0:0.1:5;
n=(m-10)./m;
plot(m,n);
Replace / with ./ (note the dot operator), and it works.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Directed Graphs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!