From: Michael on
I have some scattered data points with different values at certain (x,y) position. I know, I could plot them three-dimensionally using plot3 or even use surf or mesh etc.

However, I want to plot the data in 2D-space with the data values being shown by different colors, like imagesc does for comprehensive data.

Is there any function like "plotsc" or such, which enables me to plot scattered data following the example of imagesc?
From: Steven Lord on

"Michael " <michael.schmittNOSPAM(a)bv.tum.de> wrote in message
news:hqmj3j$q9h$1(a)fred.mathworks.com...
>I have some scattered data points with different values at certain (x,y)
>position. I know, I could plot them three-dimensionally using plot3 or even
>use surf or mesh etc.
> However, I want to plot the data in 2D-space with the data values being
> shown by different colors, like imagesc does for comprehensive data.
>
> Is there any function like "plotsc" or such, which enables me to plot
> scattered data following the example of imagesc?

HELP SCATTER
HELP SCATTER3

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ


From: us on
"Michael " <michael.schmittNOSPAM(a)bv.tum.de> wrote in message <hqmj3j$q9h$1(a)fred.mathworks.com>...
> I have some scattered data points with different values at certain (x,y) position. I know, I could plot them three-dimensionally using plot3 or even use surf or mesh etc.
>
> However, I want to plot the data in 2D-space with the data values being shown by different colors, like imagesc does for comprehensive data.
>
> Is there any function like "plotsc" or such, which enables me to plot scattered data following the example of imagesc?

a hint:

help scatter; % <- and siblings...

us
From: Michael on
Thanks a bunch! More or less exactly what I was looking for.
From: Matt Dunham on
"Michael " <michael.schmittNOSPAM(a)bv.tum.de> wrote in message <hqmj3l$qah$1(a)fred.mathworks.com>...
> I want to visualize scattered data in a color-coded way like imagesc does for comprehensive data.
>
> That means, I have a set of data values given for arbitrary (x,y) positions. I do not want to use plot3, mesh, surf or any of the available 3D plotting functions but only view the data in 2D space with an individual color for each distinct data value.
>
> Is there any kind of "plotsc" function or such?

It sounds like scatter is what you want:

Try this demo:

load seamount
scatter(x,y,5,z)

The z values are interpreted as colors