Simple question: How to set the complex part = 0 in an array?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ashfaq Ahmed
am 31 Aug. 2022
Kommentiert: Sam Chak
am 31 Aug. 2022
Hi! I have this 1x5 matrix whicihcontains complex numbers -
2+0i; 3+3i; 5+0i; 8-4i; 6+9i;
How can I set "only" the complex numbers = 0 so that I only have the real part of thisn matrix? I want this -
2; 3; 5; 8; 6;
Thank you!!
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices 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!