Filter löschen
Filter löschen

help on entering velocity formula

2 Ansichten (letzte 30 Tage)
Caprice Corlew
Caprice Corlew am 20 Sep. 2014
Beantwortet: Image Analyst am 20 Sep. 2014
How would I enter "v= πe^(-0.25t) cos(πt)-0.25e^(-0.25t) sin(πt)" into my script ?

Akzeptierte Antwort

Image Analyst
Image Analyst am 20 Sep. 2014
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);

Weitere Antworten (0)

Kategorien

Mehr zu Language Fundamentals finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by