![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175707/image.png)
help on entering velocity formula
1 view (last 30 days)
Show older comments
Caprice Corlew
on 20 Sep 2014
Answered: Image Analyst
on 20 Sep 2014
How would I enter "v= πe^(-0.25t) cos(πt)-0.25e^(-0.25t) sin(πt)" into my script ?
0 Comments
Accepted Answer
Image Analyst
on 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);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175707/image.png)
0 Comments
More Answers (0)
See Also
Categories
Find more on Fourier Analysis and Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!