How to express this function?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Deokgi Hong
am 29 Sep. 2019
Kommentiert: KALYAN ACHARJYA
am 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.)
0 Kommentare
Akzeptierte Antwort
KALYAN ACHARJYA
am 29 Sep. 2019
Bearbeitet: KALYAN ACHARJYA
am 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!