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

2 ビュー (過去 30 日間)
Ayman saleh
Ayman saleh 2023 年 5 月 6 日
コメント済み: Ayman saleh 2023 年 5 月 6 日
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 Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by