how to plot real and imag parts for this signal x(t) = cos(t/4)+cos(3*t/4)

1 回表示 (過去 30 日間)
Nawaf al raiqi
Nawaf al raiqi 2020 年 12 月 5 日
回答済み: Image Analyst 2020 年 12 月 5 日
x = cos(t/4)+cos(3*t/4)
for this signal how i plot the real and imag parts

採用された回答

Image Analyst
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);
but if t were complex, you could plot real(x) and imag(x) instead of x.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by