Ever run into a problem or a question that you were sure someone else HAD to have dealt with the same thing, yet you could not find any answer on the internet? Or you did find answers, but it took you hours or even days? This blog is simply a running account of the questions and answers that I have struggled with. May it save you gray hairs and sleepless nights.
i.e. I have a bunch of file names that look like 0001, 0002 .... 0237 and so on. To create strings in order to load the files, I have to do something like
Filenumber = 1:237;
for x = Filenumber
Name = num2str(x)
eval('load(' Name ')')
end
but that doesn't work because I need the Filenumber to be '0001' not just '1'. :(