Filter löschen
Filter löschen

How to plot a graph between workspace "complex double" vs "double" ?

3 Ansichten (letzte 30 Tage)
Shivesh Chandra Tripathi
Shivesh Chandra Tripathi am 28 Okt. 2022
Beantwortet: Steven Lord am 28 Okt. 2022
When I am trying to plot a graph between complex double value vs double value, It is removing the imaginary part of the values giving the warning "Warning: Imaginary parts of complex X and/or Y arguments ignored". What can be done to fix this?

Antworten (1)

Steven Lord
Steven Lord am 28 Okt. 2022
Where exactly on this axes:
axes
would you draw the point x = 0.5+0.25i, y = 0.75?
One potential approach would be to make a 3-d plot or a pair of 2-d plots. In the 3-D plot case the x and y data could be the real and imaginary parts of your complex array while the z data would be your real array. [Or you could plot the real data as x and the complex data as y and z, or any ordering that makes sense for your data.] In the 2-D plot case one plot would have the real part of your complex array and the second plot the imaginary part.

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by