help on entering velocity formula

6 ビュー (過去 30 日間)
Caprice Corlew
Caprice Corlew 2014 年 9 月 20 日
回答済み: Image Analyst 2014 年 9 月 20 日
How would I enter "v= πe^(-0.25t) cos(πt)-0.25e^(-0.25t) sin(πt)" into my script ?

採用された回答

Image Analyst
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 件)

カテゴリ

Help Center および File ExchangeAutomotive についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by