フィルターのクリア

"matrix dimesion must agree" error (simple equation)

2 ビュー (過去 30 日間)
Ahmet Oguz
Ahmet Oguz 2017 年 3 月 19 日
回答済み: Muhammad Abdurrehman 2017 年 3 月 19 日
When i try to run this i got an error like "Error using / Matrix dimensions must agree.
Error in Untitled2 (line 2)
M=3/s"
s=0.01:0.01:0.99;
M=3/s
plot(M,s)
end
Why am i getting this error?

回答 (1 件)

Abdurrehman
Abdurrehman 2017 年 3 月 19 日
Instead of / You should use ./ for matrix division

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by