フィルターのクリア

Matlab command for plotting complex number?

58 ビュー (過去 30 日間)
ABTJ
ABTJ 2020 年 6 月 25 日
回答済み: yanqi liu 2021 年 12 月 30 日
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
elham talvari 2021 年 12 月 29 日
I have the same problem

サインインしてコメントする。

採用された回答

dpb
dpb 2020 年 6 月 25 日

その他の回答 (1 件)

yanqi liu
yanqi liu 2021 年 12 月 30 日
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)
y = 20×1
1.1358 0.3186 0.6125 -2.1047 1.5895 -1.5769 1.9197 -0.5514 -0.0500 1.2668
figure; plot(1:length(xy), x, 'r*', 1:length(xy), y, 'yo');
figure; plot(x, y, 'r*');
figure; imagesc([x y]); colormap(hsv);

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by