
help on entering velocity formula
6 ビュー (過去 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!