![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/447223/image.png)
how to plot real and imag parts for this signal x(t) = cos(t/4)+cos(3*t/4)
조회 수: 1 (최근 30일)
이전 댓글 표시
x = cos(t/4)+cos(3*t/4)
for this signal how i plot the real and imag parts
댓글 수: 0
채택된 답변
Image Analyst
2020년 12월 5일
Why do you think there might be any imaginary parts?
Try this:
t = linspace(-2*pi, 2*pi, 1000);
x = cos(t/4)+cos(3*t/4);
plot(t, x, 'b-', 'LineWidth', 2);
grid on;
xlabel('t', 'FontSize', 20);
ylabel('x', 'FontSize', 20);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/447223/image.png)
but if t were complex, you could plot real(x) and imag(x) instead of x.
댓글 수: 0
추가 답변 (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!