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

4 vues (au cours des 30 derniers jours)
Ayman saleh
Ayman saleh le 6 Mai 2023
Commenté : Ayman saleh le 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;

Réponse acceptée

Atsushi Ueno
Atsushi Ueno le 6 Mai 2023
> how do I add the new to the old?
ss = [];
for n=1:10
ss = [ss, num2str(n), 'ss'];
end
ss
ss = '1ss2ss3ss4ss5ss6ss7ss8ss9ss10ss'

Plus de réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by