Matlab command for plotting complex number?
이전 댓글 표시
What is the command that can be used to plot whole/full complex number with one plot command?
plot(real(x) and plot(imag(x) ,both plots show up separately real and imaginary parts,but i want to see complex number (x)
When i use only plot(x), although i get a plot, but i also get a warning that only real part is being plotted
댓글 수: 1
elham talvari
2021년 12월 29일
I have the same problem
채택된 답변
추가 답변 (1개)
yes,sir,may be use two vector plot the complex data,such as
xy = rand(20,1) + randn(20,1)*i;
x = real(xy); y = imag(xy)
figure; plot(1:length(xy), x, 'r*', 1:length(xy), y, 'yo');
figure; plot(x, y, 'r*');
figure; imagesc([x y]); colormap(hsv);
카테고리
도움말 센터 및 File Exchange에서 Images에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


