How do I set a text variable The new text is added with the old
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ayman saleh
am 6 Mai 2023
Kommentiert: Ayman saleh
am 6 Mai 2023
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 Kommentare
Akzeptierte Antwort
Atsushi Ueno
am 6 Mai 2023
> how do I add the new to the old?
ss = [];
for n=1:10
ss = [ss, num2str(n), 'ss'];
end
ss
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!