Plot Intensity on Sphere

Plot intensity (color) for given points on a sphere.
2.8K Downloads
Updated 18 Mar 2008

No License

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 (2024). Plot Intensity on Sphere (https://www.mathworks.com/matlabcentral/fileexchange/19247-plot-intensity-on-sphere), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on 2-D and 3-D Plots in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0