
help on entering velocity formula
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Caprice Corlew
le 20 Sep 2014
Réponse apportée : Image Analyst
le 20 Sep 2014
How would I enter "v= πe^(-0.25t) cos(πt)-0.25e^(-0.25t) sin(πt)" into my script ?
0 commentaires
Réponse acceptée
Image Analyst
le 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);

0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!