help on entering velocity formula
1 次查看(过去 30 天)
显示 更早的评论
How would I enter "v= πe^(-0.25t) cos(πt)-0.25e^(-0.25t) sin(πt)" into my script ?
0 个评论
采纳的回答
Image Analyst
2014-9-20
Try this:
fontSize = 20;
t = linspace(-3*pi, 3*pi, 800);
v= pi *exp(-0.25*t) .* cos(pi*t) - 0.25 .* exp(-0.25*t) .* sin(pi*t);
plot(t, v, 'b-', 'Linewidth', 3);
grid on;
xlabel('t', 'FontSize', fontSize);
ylabel('v', 'FontSize', fontSize);
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!