what is the code to plot this ?

2 次查看(过去 30 天)
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 个)

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 中查找有关 Loops and Conditional Statements 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by