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

조회 수: 3 (최근 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 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