what is the code to plot this ?

14 visualizzazioni (ultimi 30 giorni)
Giuseppe Alfieri
Giuseppe Alfieri il 22 Lug 2018
Commentato: madhan ravi il 11 Ott 2018
e^(-0.3237t)*cos(3.4836t)

Risposta accettata

madhan ravi
madhan ravi il 22 Lug 2018
Modificato: madhan ravi il 22 Lug 2018
syms t
ezplot(exp(-0.3237*t)*cos(3.4836*t))

Più risposte (1)

Image Analyst
Image Analyst il 22 Lug 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';

Categorie

Scopri di più su Mathematics in Help Center e File Exchange

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by