Hello,
I have tried running a Matlab script, which works fine with the deafult data that came with it, but seems to fall over when running real data:
octave:5> gravinver_blacksea
truncation = 0.10000
ans = 0
Data sets demeaned
error: octave_base_value::array_value(): wrong type argument 'complex matrix'
error: called from:
error: C:\Octave\Octave3.6.4_gcc4.6.2\share\octave\3.6.4\m\plot\surface.m at line 159, column 7
error: C:\Octave\Octave3.6.4_gcc4.6.2\share\octave\3.6.4\m\plot\surface.m at line 51, column 23
error: C:\Octave\Octave3.6.4_gcc4.6.2\share\octave\3.6.4\m\plot\surf.m at line 51, column 9
error: c:\matlab\3d-inver\gravinver_blacksea.m at line 59, column 1
The data file being loaded is of the correct dimensions, all in kilometers (nx x ny = 1668 * 834) with increment = 2 km
5.69346189499 (entry 1)
5.47025823593
5.24368333817
5.01495265961
4.78455066681
4.55292224884
4.34906864166
4.08744668961
3.85411596298
3.62059402466
*
*
*
*
-90.8809585571
-90.0690002441
-89.2469406128
-88.414894104
-87.5740814209 (entry 1391112)
as I say, the code runs fine with the test data, and the errors generated before it crashes out are where it is plotting the figures. It partly draws figure 1 and then crashes.
Any ideas what might be wrong?
Cheers
Lester