IPGP / deformation-lib

Analytical deformation models mostly written in Matlab/Octave
32 stars 19 forks source link

Okada code error #3

Open charithaRdissanayaka opened 1 month ago

charithaRdissanayaka commented 1 month ago

Hello Sir,

I tried to run the Okada MATLAB code for the given example. I observed the following error. Can you please let me know how to run this model.

okada85 Out of memory. The likely cause is an infinite recursion within the program.

Error in okada85 (line 69) [uE,uN,uZ] = okada85(E,N,2,30,70,5,3,-45,1,1,'plot');

beaudu commented 1 month ago

Hi, These 2 lines should not produce any error:

[E,N] = meshgrid(linspace(-10,10,50));
[uE,uN,uZ] = okada85(E,N,2,30,70,5,3,-45,1,1,'plot');

The data grid size is only 50*50 points, which is ok for any computer.