Warning: Using only the real component of complex data.

30 ビュー (過去 30 日間)
Pablo Álvarez García
Pablo Álvarez García 2022 年 2 月 11 日
編集済み: Yongjian Feng 2022 年 2 月 11 日
%¿por que me da este warning?
n=0:5:50;
x= exp(j*pi*n);
stem(x)

採用された回答

Yongjian Feng
Yongjian Feng 2022 年 2 月 11 日
編集済み: Yongjian Feng 2022 年 2 月 11 日
j is the imaginary unit here, so x is complex. stem is not used to plot complex numbers, that is why only the real component is used.
Maybe you want to plot the real part and/or the imaginary part?
stem(real(x))
stem(imag(x))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeJust for fun についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by