From: Michael on 21 Apr 2010 06:13 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 21 Apr 2010 09:38 "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 21 Apr 2010 09:43 "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 21 Apr 2010 10:45 Thanks a bunch! More or less exactly what I was looking for.
From: Matt Dunham on 25 Apr 2010 16:18 "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
|
Pages: 1 Prev: Connecting to Microsoft Access 2007 Next: Matlab to VHDL |