Prev: formatting output
Next: if_else error
From: Mohammad Monfared on 8 Aug 2010 18:19 Hi, I like to plot a data set (X,Y,Z) in a smoothly colored X-Y plane which the color in each point is determined with Z values ( a color bar should be displayed as well). I've found "contourf" function near to my need but it draws some contour lines in the figure, too. How can I do this in Matlab?
From: ImageAnalyst on 8 Aug 2010 20:21 Mohammad Monfared: Yes, the contourf() function will do that - draw contours. What exactly were you hoping for? Just the data points? Maybe you want to use the scatter3() function. Be sure to look at all the options for it. Or maybe you want the surf() function?
From: Walter Roberson on 8 Aug 2010 21:00 Mohammad Monfared wrote: > I like to plot a data set (X,Y,Z) in a smoothly colored X-Y plane which > the color in each point is determined with Z values ( a color bar should > be displayed as well). I've found "contourf" function near to my need > but it draws some contour lines in the figure, too. > How can I do this in Matlab? Sounds like pcolor()
|
Pages: 1 Prev: formatting output Next: if_else error |