function of m and t solution plot

4 vues (au cours des 30 derniers jours)
N/A
N/A le 8 Déc 2020
Commenté : N/A le 8 Déc 2020
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)

Réponse acceptée

David Hill
David Hill le 8 Déc 2020
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 commentaire
N/A
N/A le 8 Déc 2020
Thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by