No BSD License  

Highlights from
plot3c

3.33333

3.3 | 3 ratings Rate this file 6 Downloads (last 30 days) File Size: 3.08 KB File ID: #14256
image thumbnail

plot3c

by Jonathan Tinker

 

13 Mar 2007 (Updated 14 Mar 2007)

Plots 3d scattered data on a 2d plot, using colour as the third dimension

| Watch this File

File Information
Description

Allows 3d scattered data to be plotted as a 2d scatterplot (i.e. plot(,,'.') ) with the third dimension being displayed as colour. Each point is coloured depending on the value of z, which is binned (bins edges or number of bins can be specified).

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
14 Mar 2007 huynh kien  
20 Dec 2007 Dmitriy Fradkin  
10 Jun 2009 Martin Lenz

very useful, thank you!
In some cases it happens, that the max point is not displayed, so i extended your code... (Not fine, but useful.)

Line 49:
zedges=linspace( (minz - 0.00001 * minz) , (maxz + 0.00001 * maxz) ,n+1);

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized Jonathan Tinker 22 Oct 2008 09:04:10
plotting Jonathan Tinker 22 Oct 2008 09:04:10
scattered Jonathan Tinker 22 Oct 2008 09:04:10
data Jonathan Tinker 22 Oct 2008 09:04:10
2d Jonathan Tinker 22 Oct 2008 09:04:10
3d Jonathan Tinker 22 Oct 2008 09:04:10
color Jonathan Tinker 22 Oct 2008 09:04:10
graphics Jonathan Tinker 22 Oct 2008 09:04:10

Contact us at files@mathworks.com