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!
