Warning: Using only the real component of complex data.
조회 수: 36 (최근 30일)
표시 이전 댓글
%¿por que me da este warning?
n=0:5:50;
x= exp(j*pi*n);
stem(x)
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!