필터 지우기
필터 지우기

Loop in cell array

조회 수: 1 (최근 30일)
Eric
Eric 2017년 2월 11일
답변: Star Strider 2017년 2월 11일
Hi everyone,
I'm currently trying to add a number in the end of a filename like this:
for jj = 1:244
names(jj) = cellstr([pwd '/' file(1).name ',' jj]);
end
But it gives me symbols instead like: . How can I get it to end with a number?
Thanks a lot in advance,
Eric

채택된 답변

Star Strider
Star Strider 2017년 2월 11일
I have no idea what you want to do because apparently some of the desired output didn’t appear.
I would use the sprintf function to create the string.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by