Plot Intensity on Sphere

Plot intensity (color) for given points on a sphere.

You are now following this Submission

PlotSphereIntensity(azimuth, elevation)
PlotSphereIntensity(azimuth, elevation, intensity)
h = PlotSphereIntensity(...)

Plots the intensity (as color) of a number of points on a unit sphere.

Input:
azimuth (phi), in degrees
elevation (theta), in degrees
intensity (optional, if not provided, a green sphere is produced)

All inputs must be vectors or matrices of the same size. Data does not have to be evenly spaced. When there aren't enough points to draw a smooth sphere, additional points (with color) are interpolated.

Output:
h - a handle to the patch object

The axes are also plotted:
positive x axis is red
positive y axis is green
positive z axis is blue

Cite As

David Johnstone (2026). Plot Intensity on Sphere (https://www.mathworks.com/matlabcentral/fileexchange/19247-plot-intensity-on-sphere), MATLAB Central File Exchange. Retrieved .

Categories

Find more on 2-D and 3-D Plots in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0