[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51624] griddata example fails
From: |
Steve Hageman |
Subject: |
[Octave-bug-tracker] [bug #51624] griddata example fails |
Date: |
Mon, 31 Jul 2017 00:15:13 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0 |
URL:
<http://savannah.gnu.org/bugs/?51624>
Summary: griddata example fails
Project: GNU Octave
Submitted by: lostinspace
Submitted on: Mon 31 Jul 2017 04:15:12 AM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: LostInSpace
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.0
Operating System: Microsoft Windows
_______________________________________________________
Details:
This example fails,
rand ("state", 1);
x = 2*rand (1000,1) - 1;
y = 2*rand (size (x)) - 1;
z = sin (2*(x.^2+y.^2));
[xx,yy] = meshgrid (linspace (-1,1,32));
zz = griddata (x, y, z, xx, yy);
mesh (xx, yy, zz);
The example is from help page at:
www.gnu.org/software/octave/doc/interpreter/Interpolation-on-Scattered-Data.html
After running that example: 'yy' looks wrong it contains only -1,-1,-1,-1....
And 'zz' is definitely wrong it contains NaN's...
Command window shows no errors.
Windows 7 x64 / Octage 4.2.0 from the GNU Installer.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51624>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51624] griddata example fails,
Steve Hageman <=