what is the code to plot this ?

조회 수: 18 (최근 30일)
Giuseppe Alfieri
Giuseppe Alfieri 2018년 7월 22일
댓글: madhan ravi 2018년 10월 11일
e^(-0.3237t)*cos(3.4836t)

채택된 답변

madhan ravi
madhan ravi 2018년 7월 22일
편집: madhan ravi 2018년 7월 22일
syms t
ezplot(exp(-0.3237*t)*cos(3.4836*t))
  댓글 수: 1
madhan ravi
madhan ravi 2018년 10월 11일
if it worked accept the answer

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2018년 7월 22일
Try this:
t = linspace(-5, 7, 200);
y = exp(-0.3237 .* t) .* cos(3.4836 * t);
plot(t, y, 'b.-', 'LineWidth', 2, 'MarkerSize', 15);
grid on;
title('y vs. t', 'FontSize', fontSize);
xlabel('t', 'FontSize', fontSize);
ylabel('y', 'FontSize', fontSize);
ax = gca;
ax.YAxisLocation = 'origin';
ax.XAxisLocation = 'origin';

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by