3D plot of a complex numer using cumsum

1 回表示 (過去 30 日間)
SUBHAJIT KAR
SUBHAJIT KAR 2020 年 5 月 8 日
コメント済み: Ameer Hamza 2020 年 5 月 8 日
I have a sequence of imazinary numbers e.g 1+3i, 1.5+0.7i, 3+0.5i............Now I want to plot sum of real part of sum on x axis, imaginary part of sum in y axis and cummulative sum in z axis. How it can be done? The expected image is attached.

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 5 月 8 日
編集済み: Ameer Hamza 2020 年 5 月 8 日
See this example
x = randn(1,1000)*1 + 1i*randn(1,1000)*1; % randomly generated complex numbers
y = cumsum(x);
plot3(real(y), imag(y), 1:numel(x), 'LineWidth', 1)
grid on
  2 件のコメント
SUBHAJIT KAR
SUBHAJIT KAR 2020 年 5 月 8 日
Thaks a lot Ameer Hamza.
Ameer Hamza
Ameer Hamza 2020 年 5 月 8 日
I am glad to be of help.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by