Clear Filters
Clear Filters

Loop in cell array

5 views (last 30 days)
Eric
Eric on 11 Feb 2017
Answered: Star Strider on 11 Feb 2017
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

Accepted Answer

Star Strider
Star Strider on 11 Feb 2017
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.

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!