No BSD License  

Highlights from
Circumcircle of a triangle

3.0

3.0 | 1 rating Rate this file 1 Download (last 30 days) File Size: 1.88 KB File ID: #17300
image thumbnail

Circumcircle of a triangle

by Bishnu Lamichhane

 

02 Nov 2007 (Updated 05 Nov 2007)

Compute the circumcircle and plot it

| Watch this File

File Information
Description

The function circumcircle takes input as the coordinates of the three vertices of a triangle and compute the circum center and circum radius by using the formula in terms of the length of sides and area of triangle and plot the circumcircle.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
02 Nov 2007 John D'Errico

Not bad. A couple of points. By forcing the user to always generate a figure plotting the circle, the author makes this code into more of a toy than a useful tool. At the very least, there should be a flag to allow the user to turn the plot on or off.

It would also be useful if this tool could accept a full triangulation, computing the circles (using vectorized computations) for each triangle, rather than only a single triangle.

Good help is supplied, but the H1 line is broken into two pieces, so lookfor won't see it all. The internal comments are useful. There is no error checking, so if you supply the wrong shape inputs you will get random results.

Finally, I'd suggest the help should include a definition of what is a circumcircle. Not all users will know.

12 Mar 2011 Kimberly

It's unfortunate that it only accepts 2 dimensions (x, y). Three dimensional space (x, y, z) would be a great addition.

Please login to add a comment or rating.
Updates
05 Nov 2007

Due to the comments from John D'Errico. It is now more flexible for plotting, and error checking. A definition is also provided for the circumcircle.

Tag Activity for this File
Tag Applied By Date/Time
data exploration Bishnu Lamichhane 22 Oct 2008 09:33:36
circum center Bishnu Lamichhane 22 Oct 2008 09:33:36
circum radius Bishnu Lamichhane 22 Oct 2008 09:33:36
cirumcenter Bishnu Lamichhane 22 Oct 2008 09:33:36
graphics Bishnu Lamichhane 22 Oct 2008 09:33:36

Contact us at files@mathworks.com