From: Jie Zhang on
"Steven Lord" <slord(a)mathworks.com> wrote in message <hvt5re$s6o$1(a)fred.mathworks.com>...
>
> "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
>

Thank you, Steve.
What I originally want to do is to control the spatial resolution of the output contour matrix, i.e. how many (x,y) pairs on a closed contour line.
Now I use the interpolation to improve the spatial resolution. It works ok, so far.
From: Christophe Lauwerys on
"Jie Zhang" <xyzhangj(a)gmail.com> wrote in message <hvt7a6$5ct$1(a)fred.mathworks.com>...
> "Steven Lord" <slord(a)mathworks.com> wrote in message <hvt5re$s6o$1(a)fred.mathworks.com>...
> >
> > "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.

For histc for instance you do supply the source code.
So what is the criterion that determines whether it is released or not?

Christophe


> >
> > >, 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
> >
>
> Thank you, Steve.
> What I originally want to do is to control the spatial resolution of the output contour matrix, i.e. how many (x,y) pairs on a closed contour line.
> Now I use the interpolation to improve the spatial resolution. It works ok, so far.