I encountered the exact same name collision problem that Christian Dorion mentioned in his comment below. If I unpack a structure in a function, and one of the resulting variable names is also a function name (it was "ngrid" in my case), then Matlab interprets the variable name as a function call. The strangest think is that if I do a "who" or "which" within the function, then Matlab correctly reports that ngrid is a variable. But then it fails to interpret it correctly. I have a very hard time coming up with an explanation for this behavior. Anyone?
Im applying smoothn in order to smooth bathmetric data sets and it works perfectly. I'm using a smooth factor of 10^9 on a 1601X1601 grid. The spacing of the points in realty is 12.5 m. can you please tell me what is the spatial meaning of the smooth factor in my case ?
I have 32 variables and am encountering the following error:
Error using nan
Out of memory. Type HELP MEMORY for your options.
Error in GSA_Init (line 71)
pro.GSA.Dmi = nan(1,L-1);
Error from(line 132)
pro = GSA_Init(pro);
L is becoming a very large number (>10^9). Any feedback is greatly appreciated