MATLAB: Empirical Ortgogonal Functions in matlab

1

Hi,
I've got some annual ocean temperature data for ~100 years for a 20×20 grid. I need to get some EOFs for this data using matlab, but I'm not sure what format the matrix should be in.
A 20x20x100 grid is obviously huge, so should I be using this?
Thanks

Best Answer

Indeed, the process of converting 3D datasets to analysis-friendly matrices is not intuitive. I have written an eof function which would accept a 20x20x100 matrix just as it is, no reshaping necessary.
Related Question