How to express this function?

5 vues (au cours des 30 derniers jours)
Deokgi Hong
Deokgi Hong le 29 Sep 2019
Commenté : KALYAN ACHARJYA le 29 Sep 2019
How do I express this function in MATLAB?
when T = 3s, W = Pi rad/s, t has a value, from 0 to 10 seconds.
y(t) = 10 * e^(-t / T) * sin(W * t)
(T is time constant. and W is angular velocity.)

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 29 Sep 2019
Modifié(e) : KALYAN ACHARJYA le 29 Sep 2019
function y=test1()
T=3;
W=pi;
t=0.01:10
y=10*exp((-t./T).*sin(W.*t))
end
Or Direct
T=3;
W=pi;
t=0.01:10;
y=10*exp((-t./T).*sin(W.*t))
  2 commentaires
Deokgi Hong
Deokgi Hong le 29 Sep 2019
Thank you!
but I wonder why 't' started from 0.01?
KALYAN ACHARJYA
KALYAN ACHARJYA le 29 Sep 2019

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