what is the code to plot this ?
2 次查看(过去 30 天)
显示 更早的评论
e^(-0.3237t)*cos(3.4836t)
0 个评论
采纳的回答
更多回答(1 个)
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';
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!