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 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!