How to save a filename that is part user input and part text?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!