![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175707/image.png)
help on entering velocity formula
조회 수: 2 (최근 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);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175707/image.png)
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!