function [rgb,filename]=colortable(name)
% COLORTABLE Return a MATLAB colormap for a COMSOL color table.
%   MAP = COLORTABLE(NAME) returns the color table (of 1024 colors) for
%   NAME, where NAME can be one of the following strings:
%
%   Cyclic - A color table that varies the hue component of the
%   hue-saturation-value color model, keeping the saturation and value
%   constant (equal to 1). The colors begin with red, pass through yellow,
%   green, cyan, blue, magenta, and finally return to red. This table is
%   particularly useful for displaying periodic functions and has a sharp
%   color gradient.
%
%   Disco - This color table spans from red through magenta and cyan to blue.
%
%   DiscoLight - Similar to Disco but uses lighter colors.
%
%   GrayScale - A color table that uses no color, only the gray scale varying
%   linearly from black to white.
%
%   GrayPrint - Varies linearly from dark gray (0.95, 0.95, 0.95) to light
%   gray (0.05, 0.05, 0.05). This color table overcomes two disadvantages that
%   the GrayScale color table has when used for printouts on paper, namely
%   that it gives the impression of being dominated by dark colors, and that
%   white cannot be distinguished from the background.
%
%   Rainbow - The color ordering in this table corresponds to the wavelengths
%   of the visible part of the electromagnetic spectrum: beginning at the
%   small-wavelength end with dark blue, the colors range through shades of
%   blue, cyan, green, yellow, and red.
%
%   RainbowLight - Similar to Rainbow, this color table uses lighter colors.
%
%   Thermal - Ranges from black through red and yellow to white, which
%   corresponds to the colors iron takes as it heats up.
%
%   ThermalEquidistant - Similar to Thermal but uses equal distances from
%   black to red, yellow, and white, which means that the black and red
%   regions become larger.
%
%   Traffic - Spans from green through yellow to red.
%
%   TrafficLight - Similar to Traffic but uses lighter colors.
%
%   Wave - Ranges linearly from blue to light gray, and then linearly from
%   white to red. When the range of the visualized quantity is symmetric
%   around zero, the color red or blue indicates whether the value is positive
%   or negative, and the saturation indicates the magnitude.
%
%   WaveLight - Similar to Wave and ranges linearly from a lighter blue to
%   white (instead of light gray) and then linearly from white to a lighter
%   red.
%
%   Calling colortable is equivalent to calling the corresponding colormap
%   function directly.
%
%   Example:
%     m = colortable('Rainbow');
%     m = rainbow;
%
%   See also CYCLIC, DISCO, DISCOLIGHT, GRAYPRINT, GRAYSCALE, RAINBOW,
%   RAINBOWLIGHT, THERMAL, THERMALEQUIDISTANT, TRAFFIC, TRAFFICLIGHT,
%   WAVELIGHT, WAVEMAP.

% Copyright 2010-2011 COMSOL
