octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #35143] slice.m demo failure


From: marco atzeri
Subject: [Octave-bug-tracker] [bug #35143] slice.m demo failure
Date: Wed, 21 Dec 2011 11:13:06 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0

URL:
  <http://savannah.gnu.org/bugs/?35143>

                 Summary: slice.m demo failure
                 Project: GNU Octave
            Submitted by: matzeri
            Submitted on: Wed 21 Dec 2011 11:13:05 AM GMT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

the second demo of slice.m fails
----------------------------------------------
/pub/hg/octave/scripts/plot/slice.m example 2:
 [xi, yi] = meshgrid (linspace (-7, 7));
 zi = xi + yi;
 slice (x, y, z, v, xi, yi, zi);

/pub/hg/octave/scripts/plot/slice.m example 2: failed
`x' undefined near line 5 column 9
-----------------------------------------------

I presume the intention was to reuse the variables defined on
first demo, but they are not shared (is it possible ?),
so it should be instead:

%! [x, y, z] = meshgrid (linspace (-8, 8, 32));
%! v = sin (sqrt (x.^2 + y.^2 + z.^2)) ./ (sqrt (x.^2 + y.^2 + z.^2));
%! [xi, yi] = meshgrid (linspace (-7, 7));
%! zi = xi + yi;
%! slice (x, y, z, v, xi, yi, zi);





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35143>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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