I love the 
for file in files
... do something with file ...
end

syntax. But sometimes it's really useful to be able to have an iterator 
accessible in the for loop, like:

for file in files
... do something with file ...
... and with i that equals find(file == files) ...
end


Is there something built in like that, other than the usual way of:

for i = 1:length(files)
... do something with files(i) ...
... and with i ...
end

?

Reply via email to