No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Contour Area Calculation

2.8 | 6 ratings Rate this file 10 Downloads (last 30 days) File Size: 8.64 KB File ID: #6905 Version: 1.0
image thumbnail

Contour Area Calculation



10 Feb 2005 (Updated )

Calculates the area of contour regions.

| Watch this File

File Information

This program displays the contour plot of an mxn (m ~= n) matrix, and then calculates the area for regions above a given level. This is a brute force implementation. It probably has some bugs, and there are probably more elegant ways to do this, but it does what I need. I am open to feedback on how to improve the code.

MATLAB release MATLAB 6.5.1 (R13SP1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
01 Mar 2012 Reja Rabbi

I want to use the code to find area of a intensity image ,the intensity values ranges from 0-255. How should I make the axes for the code? Any help is highly appreciated.

Comment only
10 Apr 2008 Tommy Frank

Thanks Phillip

24 Apr 2007 n chandrasekhar


12 Jun 2006 Dimiter Prodanov

clears workspace; not a function;
very trivial

19 Nov 2005 Duane Hanselman

Warning this is not a function. It is a script that clears the base workspace!

26 Oct 2005 Manjunath Shantharamu

It is good and can we appy this to calculate an area of any irregular shape, is so how? Thank U

12 Apr 2005 Ira B

16 Feb 2005

Updated the program to calculate the area above (not below) a certain contour level. Also modified the program to accept any mxn matrix

17 Feb 2005

Minor modifications to code.
Tried to add screenshot.

18 Feb 2005

Fixed potential problem when last point in a contour line/polygon is (0,0).

22 Feb 2005

Found out how to correctly plot only a single contour in Matlab. Added an example xls data file.

22 Feb 2005

Updated description.

Contact us