function of m and t solution plot
1 次查看(过去 30 天)
显示 更早的评论
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)
0 个评论
采纳的回答
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!