Warning: Using only the real component of complex data.

39 views (last 30 days)
%¿por que me da este warning?
x= exp(j*pi*n);

Accepted Answer

Yongjian Feng
Yongjian Feng on 11 Feb 2022
Edited: Yongjian Feng on 11 Feb 2022
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?

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by