bugGNU Octave - Bugs: bug #60216, Delaunay example

 
 

bug #60216: Delaunay example

Submitter:  Luca Nicolini <luca_nicolini>
Submitted:  Fri 12 Mar 2021 04:12:51 PM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 6.2.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 12 Mar 2021 06:15:19 PM UTC, comment #1: 

Thank you for your report.

I changed the code slightly differently to actually match the code that is used to produce the following image:
https://hg.savannah.gnu.org/hgweb/octave/rev/d07e1eeceead

Octave 5.2 is no longer supported. I made the change on the current stable branch that will eventually become Octave 6.3.

Closing as fixed.

Markus Mützel <mmuetzel>
Group administrator
Fri 12 Mar 2021 04:12:51 PM UTC, original submission:  

I found a little bug in the example of plotting Delaunay triangulation provided in page 776 of the manual for version 5.2.0.
This is the example:

rand ("state", 2);
x = rand (10, 1);
y = rand (10, 1);
T = delaunay (x, y);
X = [ x(T(:,1)); x(T(:,2)); x(T(:,3)); x(T(:,1)) ];
Y = [ y(T(:,1)); y(T(:,2)); y(T(:,3)); y(T(:,1)) ];
axis ([0, 1, 0, 1]);
plot (X, Y, "b", x, y, "r*");

In this way, the arrays X and Y are column vectors whereas they should be matrix of size [4x10]. The problem is easily fixed in this way:

X = [ x(T(:,1))'; x(T(:,2))'; x(T(:,3))'; x(T(:,1))' ];
Y = [ y(T(:,1))'; y(T(:,2))'; y(T(:,3))'; y(T(:,1))' ];


Luca Nicolini <luca_nicolini>

 

(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 mmuetzel (Posted a comment)
  • -email is unavailable- added by luca_nicolini (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-12 mmuetzel StatusNone Fixed
        Open/ClosedOpen Closed
        Release5.2.0 6.2.0
        Operating SystemMicrosoft Windows Any

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code