From: Khanh on
"Sean " <sean.dewolski(a)nospamplease.umit.maine.edu> wrote in message <i3plj6$ich$1(a)fred.mathworks.com>...
> "Khanh " <kdcung(a)mtu.edu> wrote in message <i3pks4$2h5$1(a)fred.mathworks.com>...
> > Sean,
> > your answer works for the hypothetical problem that I posted. But what I was really looking for is to have A, B values on the axis.
> > Another way to say is, if I have
> > A=[1 3 6 8 1 3 6 8]
> > B=[1 1 1 1 2 2 2 2]
> > C=[3 6 2 8 3 5 3 6]
> > how Contour(A,B,C)??
>
> A=[1 3 6 8 1 3 6 8]
> B=[1 1 1 1 2 2 2 2]
> C=[3 6 2 8 3 5 3 6]
>
> [rr cc] = meshgrid([1 2],[1 3 6 8])
> contour(rr,cc,reshape(C,4,2))
>
> Do you mean this? You still haven't specified _exactly_ what you expect.
>
> Or do you mean this:
> contour([A.',B.'],C)
>
> It's very difficult to gauge what you want.

Sean,
Can you explain the difference between these two method? I want to use the second method.