How do you plot a function?
조회 수: 1 (최근 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에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!