how to write increment operator in matlab to read files one after antother..help
6 views (last 30 days)
dpb on 16 Nov 2016
Edited: dpb on 16 Nov 2016
i will take on the values in succession automagically and can be used in the loop.
NB: Matlab arrays, however, are 1-based, not 0-based, so the above will fail if try to write
with indexing error "Subscript indices must either be real positive integers or logicals."
If, however, the idea is to read a series of files with successive numeric values in the file names somehow using this to generate names, that's not recommended practice in Matlab for variables and the like altho can be done for file names. But, generally are easier ways, dir with a suitable wildcard pattern being one of the best. See the FAQ <Process sequence of files>