Create a character cell in ascending order
이전 댓글 표시
i want to create a cell of 1000*1 , containing the strings in ascending order.
Let's say variable1, variable2,....variable999,variable1000. How can i do that with for loop?
채택된 답변
추가 답변 (1개)
N = 1000;
C = cell(1,N);
for k = 1:N
C{k} = sprintf('variable%d',k);
end
카테고리
도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!