[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Implementation of the rectangle function
From: |
David Bateman |
Subject: |
Implementation of the rectangle function |
Date: |
Tue, 17 May 2011 22:09:46 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 |
I needed to implement the rectangle function when porting the MTEX
package. See the URL
http://www.mathworks.com/help/techdoc/ref/rectangle.html
However, rectangles in Matlab are fully fledged objects rather than a
patch wrapped in an hggroup. Frankly I don't see what that adds for
Matlab to do it that way. In any case, I needed to keep compatibility
with Octave 3.4.0, so adding a new type of graphic handle didn't seem
the best thing.
I attach my implementation of rectangle here. Should I commit it, or
should we go the Matlab way and make rectangles full objects?
David
rectangle.m
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Implementation of the rectangle function,
David Bateman <=