How to plot for for a range? showing error

1 回表示 (過去 30 日間)
Shauvik Das
Shauvik Das 2019 年 12 月 1 日
編集済み: Bhaskar R 2019 年 12 月 1 日

採用された回答

Bhaskar R
Bhaskar R 2019 年 12 月 1 日
編集済み: Bhaskar R 2019 年 12 月 1 日
Your code
t = 0:0.001:1;
D = (117649*exp(4*t))/6561- (117649*exp(4*t))/26244 - (117649*t.^2.*exp(4*t))/4374 - ...
(117649*t.^3.*exp(4*t))/8748 - (117649*t.^4.*exp(4*t))/46656;
plot(t, D);

その他の回答 (1 件)

Vladimir Sovkov
Vladimir Sovkov 2019 年 12 月 1 日
Probably, t^2 and t^4 are implyed to be t.^2 and t.^4.
And all the multiplications of the expressions containing t are implyed to be .* but not just *
This is if you want to do the element-wise operations (as it looks to be) but not the algebraic matrix operations.
  1 件のコメント
Bhaskar R
Bhaskar R 2019 年 12 月 1 日
編集済み: Bhaskar R 2019 年 12 月 1 日
Don't make your comment in answer section and code should not be in image

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by