How do I set a text variable The new text is added with the old

3 次查看(过去 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;

采纳的回答

Atsushi Ueno
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
ss = '1ss2ss3ss4ss5ss6ss7ss8ss9ss10ss'

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by