About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconContour2Area (Scripts) Publisher's description

Gives the area of the polygons that are created from the matlab function C=contour

Gives the area of the polygons that are created from the matlab function C=contour(x,y,z,...); It also gives the centroids (centre of mass) of each polygon. The structure of C delivered by contour is a bit complicated to work with itself, why I developed this matlab function.

Syntax: [Area,Centroid,IN]=Contour2Area(C)
Takes the contour argument C from matlabs function contourc
as produced by C=contour(x,y,z,...) and convert the contours
to closed polygons from where the areas are calculated.
In addition the centroids (centre of mass) Cxy are calculated
and a matrix IN determining the parent/child relationship
between the contours (if polygon i is inside j then IN_ij=1, else=0).
For obscure contours NaN would be retrived, but are excluded in output.
Created By: Per Sundqvist 2010-01-26, ABB/CRC, Västerås/Sweden.
%--- Example ---
[X,Y,Z] = PEAKS(50);
figure(1), clf;
%C=contourf(X,Y,Z,0.37+[0 0]);
hold on;plot(xc,yc,'k*');

System Requirements:

MATLAB 7.7 (R2008b)
Program Release Status: New Release
Program Install Support: Install and Uninstall

Contour2Area (Scripts) Tags:

Click on a tag to find related softwares

Is Contour2Area (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.