![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/291478/image.png)
3D plot of a complex numer using cumsum
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
SUBHAJIT KAR
am 8 Mai 2020
Kommentiert: Ameer Hamza
am 8 Mai 2020
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.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/291474/image.bmp)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/291474/image.bmp)
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 8 Mai 2020
Bearbeitet: Ameer Hamza
am 8 Mai 2020
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/291478/image.png)
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!