How to append underscore to name of image?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi
How to append underscore to the variable name or name of image?Eg:a_20.how to a concatenate 'a' and '_'='a_'
0 Commenti
Risposta accettata
Iain
il 3 Giu 2013
You can concatenate strings:
['hello' ' ' 'world' '_' 'a' '.jpg']
['name' '_' num2str(number)]
etc.
0 Commenti
Più risposte (1)
Matt J
il 3 Giu 2013
Modificato: Matt J
il 3 Giu 2013
You don't enumerate different images this way, if that's what you mean. You use cell arrays or multi-dimensional indexing
a(:,:,20) = theImage;
or
a{20} = theImage;
If that's not what you mean, please clarify. It seems like it should be very easy to modify the name of the variable, just by assigning to the new name and clearing the old one if needed
a_=a; clear a
0 Commenti
Vedere anche
Categorie
Scopri di più su Dates and Time in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!