Change form of complex number?
Afficher commentaires plus anciens
Hello, I have data from a program that outputs one column of complex values. It takes this form:
-3.94784161958372514789e-012-j6.28318528237456513067e-008
-4.60520922611340477459e-012-j6.78616917929321520919e-008
-5.37203701661548294055e-012-j7.32941813034424751869e-008
-6.26655173065204795790e-012-j7.91615544841966181044e-008
-7.31001500650640956280e-012-j8.54986248018396261909e-008
Whereas I would like the j to be on the outside for each value, i.e.
-3.94784161958372514789e-012-6.28318528237456513067e-008j
I know I could loop through the data with an if statement, but is there a more elegant/simple way to make this change on a massive data file? Thanks!
Réponses (0)
Catégories
En savoir plus sur Entering Commands dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!