File Exchange

image thumbnail

scatter3sph

version 1.5.0.0 (2.89 KB) by Francisco de Castro
SCATTER3SPH Plots a 3d scatter plot with 3D spheres of different size and color

4K Downloads

Updated 06 Jun 2014

View License

SCATTER3SPH is like scatter3 only drawing spheres, instead of flat circles. It can represent three quantities as: height (Z), color and size for each combination of two variables (X and Y). The spheres will look 'spherical' no matter the axis scaling.
SCATTER3SPH(X,Y,Z) draws the spheres at coordinates in vectors X, Y and Z, with the default size and color. The three vectors have to be of the same length.

SCATTER3SPH(X,Y,Z,'size',S) draws the spheres with sizes S. If length(S)= 1 the same size is used for all spheres.

SCATTER3SPH(X,Y,Z,'color',C) draws the spheres with colors specified in a N-by-3 matrix C as RGB values.

SCATTER3SPH(X,Y,Z,'transp',T) applies transparency level 'T' to the spheres T= 0 => transparent, T= 1 => opaque.

Cite As

Francisco de Castro (2021). scatter3sph (https://www.mathworks.com/matlabcentral/fileexchange/27112-scatter3sph), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!