bugGNU Octave - Bugs: bug #35143, slice.m demo failure

 
 

bug #35143: slice.m demo failure

Submitter:  marco atzeri <matzeri>
Submitted:  Wed 21 Dec 2011 11:13:05 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 21 Dec 2011 06:26:54 PM UTC, comment #1: 
Rik <rik5>
Group administrator
Wed 21 Dec 2011 11:13:05 AM UTC, original submission:  

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);

marco atzeri <matzeri>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by matzeri (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-12-21 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code