help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd behaviour with Matlab script


From: Doug Stewart
Subject: Re: Odd behaviour with Matlab script
Date: Sun, 9 Feb 2014 10:20:14 -0500




On Sun, Feb 9, 2014 at 10:05 AM, Lester Anderson <address@hidden> wrote:
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


_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave




at line 59  try
surf(real(mapabou))

--
DASCertificate for 206392


reply via email to

[Prev in Thread] Current Thread [Next in Thread]