View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
spharmPlot(L, resolution)

5.0 | 1 rating Rate this file 9 Downloads (last 30 days) File Size: 1.88 KB File ID: #41613 Version: 1.1
image thumbnail

spharmPlot(L, resolution)



03 May 2013 (Updated )

A simple function for plotting real basis of spherical harmonics with different orders.

| Watch this File

File Information

% Syntax:
% spharmPlot(L, resolution)
% spharmPlot(L)
% spharmPlot()
% Inputs:%
% L: degree of the functions, default value = 2;
% resolution: resolution of sphere surface, default value = 500.
% Results:
% green regions represent negative values
% red regions represent positive values

MATLAB release MATLAB 8.3 (R2014a)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
26 Jun 2016 Franck Zagala

nice, but sign mistakes (e.g. L=1, M={-1,1} inverted sign)

Comment only
22 Jan 2016 Stephan Koehler

12 Nov 2014 Mengliu Zhao

@Tahariet "Errror when loading "redgreencmap". Help!" -- Maybe you're using a MATLAB version before2012a? See red and green colormap ref:

Actually you can use any colormap choice you want, e.g., colormap('default').

Comment only
11 Nov 2014 Tahariet Sharon

Errror when loading "redgreencmap". Help!

Comment only
04 Dec 2014 1.1

Corrected the sign of Legendre polynomials

Contact us