How to use multiple formats
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
My teacher is asking me to use 8 different formats. I've tried everything I could think and even read the textbook. If anyone could show me how to use multiple formats to get more than one answer that would be great! Thanks
0 commentaires
Réponses (1)
Star Strider
le 17 Sep 2015
Modifié(e) : Star Strider
le 17 Sep 2015
If you need ideas, see the documentation in fprintf for formatSpec. That has all the available options. The creativity is your responsibility. (You might also need the str2num or num2str functions, depending on the requirements of your assignment.)
Voir également
Catégories
En savoir plus sur Workspace Variables and MAT Files dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!