writing a string
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
A=3; B=17; how can I write a string: 'Panel A: range(3-17)'?
0 commentaires
Réponse acceptée
Plus de réponses (1)
per isakson
le 3 Juil 2011
I prefer
sprintf( 'Panel A: range(%u-%u)', A, B )
because I make fewer mistakes using that style
- per
0 commentaires
Voir également
Catégories
En savoir plus sur Characters and Strings 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!