How do I type this equation?
1 回表示 (過去 30 日間)
古いコメントを表示
I need to write the equation
P = (10/(R+20))^2
When R starts at 0 and ends at 40 with step size of 0.1. So far, I have
R = [0:0.1:40];
P = R * (10/(R + 20))^2.
I've tried a few different ways, and I keep getting error message Matrix Dimensions Must Agree. How would I do this? I'm still very new to Matlab and I'm don't understand how everything works.
0 件のコメント
採用された回答
Walter Roberson
2017 年 11 月 25 日
編集済み: Walter Roberson
2017 年 11 月 25 日
P = R .* (10./(R + 20)).^2.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!