How do you plot a function?
21 次查看(过去 30 天)
显示 更早的评论
How would you plot x(t)=[12+7sin(
t-(1/3*pi)]*cos(13pit)
0 个评论
回答(2 个)
Hernia Baby
2021-9-17
编辑:Hernia Baby
2021-9-18
syms t;
x = (12 + 7*sin(pi*t - (1/3)*pi) )*cos(13*pi*t)
fplot(t,x)
0 个评论
Image Analyst
2021-9-17
Try this:
t = linspace(-pi, pi, 1000);
xt = (12 + 7 * sin(pi * t - (1/3 * pi))) .* cos(13 * pi * t);
plot(t, xt, 'b-', 'LineWidth', 2);
grid on;
xlabel('t', 'FontSize', 20);
ylabel('x(t)', 'FontSize', 20);

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!
