what is the code to plot this ?

14 Ansichten (letzte 30 Tage)
Giuseppe Alfieri
Giuseppe Alfieri am 22 Jul. 2018
Kommentiert: madhan ravi am 11 Okt. 2018
e^(-0.3237t)*cos(3.4836t)

Akzeptierte Antwort

madhan ravi
madhan ravi am 22 Jul. 2018
Bearbeitet: madhan ravi am 22 Jul. 2018
syms t
ezplot(exp(-0.3237*t)*cos(3.4836*t))

Weitere Antworten (1)

Image Analyst
Image Analyst am 22 Jul. 2018
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';

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by