I want to plot this function f = cos(0.5*t)*5*exp(t)/(t^2+1)
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Amjad Daluol
le 14 Juin 2020
Commenté : Amjad Daluol
le 14 Juin 2020
I have t= 0:0.01:10; but I have a problem with the function itself. I know that I need to perform an element by element multiplication, but do not know how. Please help.
Réponse acceptée
Abdolkarim Mohammadi
le 14 Juin 2020
You should place a period befor operations to get element-wise operators.
f = cos(0.5.*t) .* 5 .* exp(t) ./ (t.^2+1);
Plus de réponses (0)
Voir également
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!