From: Chris on
I have a dataset of 123 points, it is composed of Latitude, Longitude and mean sediment diameter. What I am trying to do is to create a 2-D plot of this data using a color gradient to represent the mean sediment diameter. What would be the best way to go about doing this?

Thanks
From: Walter Roberson on
Chris wrote:
> I have a dataset of 123 points, it is composed of Latitude, Longitude
> and mean sediment diameter. What I am trying to do is to create a 2-D
> plot of this data using a color gradient to represent the mean sediment
> diameter. What would be the best way to go about doing this?

I suggest pcolor() or possibly contour()
From: Frédéric Bergeron on
"Chris " <chris.veinot(a)hotmail.com> wrote in message <huj3t5$bt5$1(a)fred.mathworks.com>...
> I have a dataset of 123 points, it is composed of Latitude, Longitude and mean sediment diameter. What I am trying to do is to create a 2-D plot of this data using a color gradient to represent the mean sediment diameter. What would be the best way to go about doing this?
>
> Thanks

I would try SURF(X,Y,Z,C) with an array of Z of 123 zeros. The array C is for the color gradient. See help surf for more details.
Surf is originally made for 3D graphs, but I don't know of a similar 2D function, so by defining the array Z as an array of zeros it would probably works.
From: Chris on
This seems to be what I'm going for! However I believe I am setting up the Z array wrong, I am getting an error "Z must be a matrix, not a scalar or vector"

"Frédéric Bergeron" <frederic.bergeron(a)logiag.com> wrote in message <huj4l2$2rd$1(a)fred.mathworks.com>...
> "Chris " <chris.veinot(a)hotmail.com> wrote in message <huj3t5$bt5$1(a)fred.mathworks.com>...
> > I have a dataset of 123 points, it is composed of Latitude, Longitude and mean sediment diameter. What I am trying to do is to create a 2-D plot of this data using a color gradient to represent the mean sediment diameter. What would be the best way to go about doing this?
> >
> > Thanks
>
> I would try SURF(X,Y,Z,C) with an array of Z of 123 zeros. The array C is for the color gradient. See help surf for more details.
> Surf is originally made for 3D graphs, but I don't know of a similar 2D function, so by defining the array Z as an array of zeros it would probably works.
From: someone on
"Chris " <chris.veinot(a)hotmail.com> wrote in message <huj7ip$mmd$1(a)fred.mathworks.com>...
> This seems to be what I'm going for! However I believe I am setting up the Z array wrong, I am getting an error "Z must be a matrix, not a scalar or vector"

OK, so how did you "set it up"?
What command(s) did you use?

>
> "Frédéric Bergeron" <frederic.bergeron(a)logiag.com> wrote in message <huj4l2$2rd$1(a)fred.mathworks.com>...
> > "Chris " <chris.veinot(a)hotmail.com> wrote in message <huj3t5$bt5$1(a)fred.mathworks.com>...
> > > I have a dataset of 123 points, it is composed of Latitude, Longitude and mean sediment diameter. What I am trying to do is to create a 2-D plot of this data using a color gradient to represent the mean sediment diameter. What would be the best way to go about doing this?
> > >
> > > Thanks
> >
> > I would try SURF(X,Y,Z,C) with an array of Z of 123 zeros. The array C is for the color gradient. See help surf for more details.
> > Surf is originally made for 3D graphs, but I don't know of a similar 2D function, so by defining the array Z as an array of zeros it would probably works.
 |  Next  |  Last
Pages: 1 2
Prev: tree handle class
Next: Plotting multiple line in a GUI