필터 지우기
필터 지우기

3D plot of a complex numer using cumsum

조회 수: 2 (최근 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개)

Community Treasure Hunt

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

Start Hunting!

Translated by