bugGNU Octave - Bugs: bug #60216, Delaunay example


bug #60216: Delaunay example

Submitted by:  Luca Nicolini <luca_nicolini>
Submitted on:  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

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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:

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>
Project Member
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:

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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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.7