can you remove complex values from a plot
18 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
G
am 24 Okt. 2014
Kommentiert: des teg
am 15 Jun. 2022
I am using plotyy but I have noticed that it begins to try and plot complex values. I know the data is accurate up until the numbers become complex. Is there a way to tell matlab to not plot the complex values.
Edit
I am plotting 2 [3x99] matrices. In one matrix the values will become complex after a point while the other matrix will always be real. I am looking for a way to ignore the complex values.
0 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 24 Okt. 2014
Bearbeitet: Sean de Wolski
am 24 Okt. 2014
xreal = real(x)
More
x = [3+0i,5+1i,4+2i,1+0i]
x(~imag(x))
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Two y-axis 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!