From: Jie Zhang on
I am trying to follow a contour line with the matlab built-in function contourc:
C = contourc(x_vec,y_vec,z,[value,value])
The returned matrix size and grids are chosen automatically, which is not what I want.
The source code for this function does not come along with matlab.
I am wondering if it's possible to get the source code for such built-in functions and modify, OR, how to control the output.
From: someone on
"Jie Zhang" <xyzhangj(a)gmail.com> wrote in message <hvrcfo$6t$1(a)fred.mathworks.com>...
> I am trying to follow a contour line with the matlab built-in function contourc:
> C = contourc(x_vec,y_vec,z,[value,value])
> The returned matrix size and grids are chosen automatically, which is not what I want.
> The source code for this function does not come along with matlab.
> I am wondering if it's possible to get the source code for such built-in functions and modify, OR, how to control the output.

What is it that you wish to do that you can't with
clabel or the Contourgroup Properties?
From: Jie Zhang on
"someone" <someone(a)somewhere.net> wrote in message <hvrrrg$o94$1(a)fred.mathworks.com>...
> "Jie Zhang" <xyzhangj(a)gmail.com> wrote in message <hvrcfo$6t$1(a)fred.mathworks.com>...
> > I am trying to follow a contour line with the matlab built-in function contourc:
> > C = contourc(x_vec,y_vec,z,[value,value])
> > The returned matrix size and grids are chosen automatically, which is not what I want.
> > The source code for this function does not come along with matlab.
> > I am wondering if it's possible to get the source code for such built-in functions and modify, OR, how to control the output.
>
> What is it that you wish to do that you can't with
> clabel or the Contourgroup Properties?

Thank you for the reply.
The issue is "contourc" is a "low-level" built-in function; "clabel" uses its output; "Contourgroup Properties" are used for plotting contour.--what I wish to do is simply to get the series of (x,y) coordinates following a specific contour line.

I think I got the solution, although it's not perfect:
interplating the contour matrix output by "contourc"--lucky enough, it seems to have high enough spatial resolution.

Thanks again.
From: Jie Zhang on
"someone" <someone(a)somewhere.net> wrote in message <hvrrrg$o94$1(a)fred.mathworks.com>...
> "Jie Zhang" <xyzhangj(a)gmail.com> wrote in message <hvrcfo$6t$1(a)fred.mathworks.com>...
> > I am trying to follow a contour line with the matlab built-in function contourc:
> > C = contourc(x_vec,y_vec,z,[value,value])
> > The returned matrix size and grids are chosen automatically, which is not what I want.
> > The source code for this function does not come along with matlab.
> > I am wondering if it's possible to get the source code for such built-in functions and modify, OR, how to control the output.
>
> What is it that you wish to do that you can't with
> clabel or the Contourgroup Properties?
From: Steven Lord on

"Jie Zhang" <xyzhangj(a)gmail.com> wrote in message
news:hvrcfo$6t$1(a)fred.mathworks.com...
>I am trying to follow a contour line with the matlab built-in function
>contourc:
> C = contourc(x_vec,y_vec,z,[value,value])
> The returned matrix size and grids are chosen automatically, which is not
> what I want.

Huh? What _do_ you want, then?

> The source code for this function does not come along with matlab. I am
> wondering if it's possible to get the source code for such built-in
> functions and modify

We don't release the source code for built-in functions.

>, OR, how to control the output.

That depends -- what are you trying to have it do?

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com


 |  Next  |  Last
Pages: 1 2
Prev: Graphing
Next: Real-Time Color Tracking Particle Filter