How to express this function?
6 views (last 30 days)
Show older comments
Deokgi Hong
on 29 Sep 2019
Commented: KALYAN ACHARJYA
on 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 Comments
Accepted Answer
KALYAN ACHARJYA
on 29 Sep 2019
Edited: KALYAN ACHARJYA
on 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 Comments
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!