How can I use "for" to open many netcdf files?

Hi, I have some netcdf files wich are 4-D. My problem is that I have to open all in Matlab to do the avarage in time all of them, but because of the size of each file I can´t open all at the same time because Matlab out of memory. So, I need to do a loop which open a file,it does the average with the next file an then clear the former file,and in that way with the rest of files until the last. How can I do it?

Asked:

on 12 May 2013

Community Treasure Hunt

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

Start Hunting!