scatter3sph

SCATTER3SPH Plots a 3d scatter plot with 3D spheres of different size and color

Vous suivez désormais cette soumission

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.

Citation pour cette source

Francisco de Castro (2026). scatter3sph (https://fr.mathworks.com/matlabcentral/fileexchange/27112-scatter3sph), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.5.0.0

Change demo figure

1.4.0.0

Added transparency as optional argument

1.3.0.0

Make the spheres always look spherical independently of axis scaling.

1.2.0.0

Heeding John D'Errico comments, now parameter names can be abbreviated (to 3 letters) and their case is irrelevant.

1.1.0.0

Change figure and description to better describe the utility of the function

1.0.0.0