フィルターのクリア

My graph is blank

1 回表示 (過去 30 日間)
Kevin Chapman
Kevin Chapman 2019 年 1 月 30 日
回答済み: Star Strider 2019 年 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);

採用された回答

Star Strider
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.
See the documentation section on Array vs. Matrix Operations (link) for an extended discussion.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDirected Graphs についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by