Custom output of the fprintf
Afficher commentaires plus anciens
Is there any way to use fprint with an exponential output field (e) for example:
%15.2e
and not get an output such as 3.00e-05 but 30.00e-06? Thank you
1 commentaire
José-Luis
le 8 Fév 2013
No, you'd have to write a custom function.
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 8 Fév 2013
0 votes
That does not seem to be one of the format specifier options built in. See formatSpec section of the fprintf() help documentation. It would be nice if it were though. I've seen other programs where you can specify "Scientific notation" where the exponent can be any number, and "Engineering Notation" where the exponent is a multiple of 3.
2 commentaires
Giorgos Papakonstantinou
le 8 Fév 2013
Modifié(e) : Giorgos Papakonstantinou
le 8 Fév 2013
Image Analyst
le 8 Fév 2013
Catégories
En savoir plus sur Low-Level File I/O dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!