what is the code to plot this ?

14 vues (au cours des 30 derniers jours)
Giuseppe Alfieri
Giuseppe Alfieri le 22 Juil 2018
Commenté : madhan ravi le 11 Oct 2018
e^(-0.3237t)*cos(3.4836t)

Réponse acceptée

madhan ravi
madhan ravi le 22 Juil 2018
Modifié(e) : madhan ravi le 22 Juil 2018
syms t
ezplot(exp(-0.3237*t)*cos(3.4836*t))
  1 commentaire
madhan ravi
madhan ravi le 11 Oct 2018
if it worked accept the answer

Connectez-vous pour commenter.

Plus de réponses (1)

Image Analyst
Image Analyst le 22 Juil 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';

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by