I have a similar problem processing my Terrasar-x data (ISCE to StaMPS).
TRAIN modis step 3, aps_modis(3,3):
I get the error:
Error using ./
Matrix dimensions must agree.
Error in aps_modis_InSAR (line 273)
d_modis = d_modis./cos(look_angle);
Error in aps_modis (line 116)
my la2.mat file is 0bytes and I need it for this last step, I do have an inc2.mat file. I also would like clarification i.e. are the look-angle (la2.mat) and incident-angle (inc2.mat) values the same?