How do I set a text variable The new text is added with the old
1 回表示 (過去 30 日間)
古いコメントを表示
Hi guys
I have a duplicate and a new text is being generated, how do I add the new to the old?
for n=1:10
ss = n + 'ss';
end
dlmwrite(sprintf(All.txt', n), ss;
0 件のコメント
採用された回答
Atsushi Ueno
2023 年 5 月 6 日
> how do I add the new to the old?
ss = [];
for n=1:10
ss = [ss, num2str(n), 'ss'];
end
ss
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!