Re: contourc and length of contours



"mark b." <john.doe.nospam@xxxxxxxxxxxxx> wrote in message
<g1s6ml$bl1$1@xxxxxxxxxxxxxxxxxx>...
hi,
i've got a question about 'contourc' function. do i
understand corectly that this function should compute
lenght of conturs?
i've got set of points (x,y) of contour. and i want to know
it's length. but when i use 'contourc' function i get
matrix 2xN, with values i do not understand. i read matlab
documentation but i do not understand how to callculate
this lenght.
can anyone help me with that??
kind regards

I think you misunderstand the meaning
of "length".

Contourc does not return a length, as in
a Euclidean distance. It does return the
NUMBER of points on a given polygonal
contour. Read the help for contourc.

The segments are appended end-to-end as

C = [level1 x1 x2 x3 ... level2 x2 x2 x3 ...;
pairs1 y1 y2 y3 ... pairs2 y2 y2 y3 ...]

The output array has all the information
that you need. The first column gives the
contour level for a given contour polygon,
and the NUMBER of points in that polygon.
The next few columns correspond to the
(x,y) pairs of points. Then it repeats for
each contour polygon. READ THE HELP.
It is right there.

If you want to compute the actual length
of a contour polygon, then you have all
the data at your fingertips.

John
.



Relevant Pages

  • Re: contourc and length of contours
    ... it tells you the contour ... A contour is a level surface, ... should see that the first contour polygon ... has 11 segments in it. ...
    (comp.soft-sys.matlab)
  • Re: Contour matrix objects help, Please
    ... the first column contains the number of points N of the first ... and then the next N columns are the data-points. ... The contour matrix C is a two row matrix of contour lines. ... contiguous drawing segment contains the value of the contour, ...
    (comp.soft-sys.matlab)
  • Re: Contour matrix objects help, Please
    ... the first column contains the number of points N of the first ... The contour matrix C is a two row matrix of contour lines. ... contiguous drawing segment contains the value of the contour, ... the number of drawing pairs, and the pairs themselves. ...
    (comp.soft-sys.matlab)
  • Re: Melody (a second class citizen?)
    ... I especially like the contour and altering the ... phrases while keeping the same lenght. ...
    (rec.music.makers.guitar.jazz)