function of m and t solution plot

4 ビュー (過去 30 日間)
N/A
N/A 2020 年 12 月 8 日
コメント済み: N/A 2020 年 12 月 8 日
hw question is below my work. please give recommendations for how to correct the code.
t=-5:0.01:5;
n=20;
m=1:n;
y=((t.^m)(m.^2)/((e.^mt)-e^(-mt));
hold on
plot(t,y)

採用された回答

David Hill
David Hill 2020 年 12 月 8 日
t=-5:0.01:5;
n=20;
hold on;
for m=1:20
y=(t.^m)*m^2./(exp(m*t)-exp(-m*t));
plot(t,y)
end
  1 件のコメント
N/A
N/A 2020 年 12 月 8 日
Thank you!

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

その他の回答 (0 件)

カテゴリ

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