Octave 3.0.1 surfc command generates errors
David Bateman
David.Bateman at motorola.com
Tue Jul 8 03:19:13 CDT 2008
Karl M wrote:
> Hi All...
>
> I just downloaded and installed the precompiles MSVC octave 3.0.1 for
> windows.
>
> I am running XP SP2, and installed Octave with the jHandles option.
>
> When I run
>
> x = -2:0.1:2;
> [xx,yy] = meshgrid(x,x);
> z = sin(xx.^2-yy.^2);
> surfc(x,x,z,'EdgeColor', 'none');
>
> I get the following
>
> octave-3.0.1.exe:3> x = -2:0.1:2;
> octave-3.0.1.exe:4> [xx,yy] = meshgrid(x,x);
> octave-3.0.1.exe:5> z = sin(xx.^2-yy.^2);
> octave-3.0.1.exe:6> surfc(x,x,z,'EdgeColor', 'none');
> Invalid call to contourc. Correct usage is:
> -- Function File: [C, LEV] = contourc (X, Y, Z, VN)
Yes this is a known issue, though probably won't be fixed in the 3.0.x
series and is already fixed in the 3.1.x SVN.. The workaround is
x = -2:0.1:2;
[xx,yy] = meshgrid(x,x);
z = sin(xx.^2-yy.^2);
h = surfc(x,x,z);
set(h,'EdgeColor', 'none');
Regards
David
--
David Bateman David.Bateman at motorola.com
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
More information about the Bug-octave
mailing list