How to save a filename that is part user input and part text?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I'm having trouble figuring out how to save a filename that is part user input and part variable?
For example:
a = input('Please enter a filename: ', 's');
x = 1+1;
y = 2-0;
save(a??, 'x', '-ASCII');
save(a??, 'y', '-ASCII');
Let's say user filename is math
I want to save two different ascii files with a similar name as math, but be able to distinguish the two.
for example, I want to save them as:
mathadd
mathsub
How would I go about doing this with the save function? Is it even possible? Thanks.
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Text Files 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!