matlab在气象中的应用
bluewhitered.m
function newmap = bluewhitered(m)
%BLUEWHITERED Blue, white, and red color map.
% BLUEWHITERED(M) returns an M-by-3 matrix containing a blue to white
% to red colormap, with white corresponding to the CAXIS value closest
% to zero. This colormap is most useful for images and surface plots
% with positive and negative values. BLUEWHITERED, by itself, is the
% same length as the current colormap.
%
% Examples:
% ------------------------------
% figure
% imagesc(peaks(250));
% colormap(bluewhitered(256)), colorbar
%
% figure
% imagesc(peaks(250), [0 8])
% colormap(bluewhitered), colorbar
%
% figure
% imagesc(peaks(250), [-6 0])
% colormap(bluewhitered), colorbar
%
% figure
% surf(peaks)
% colormap(bluewhitered)
% axis tight
%
% See also HSV, HOT, COOL, BONE, COPPER, PINK, FLAG,
% COLORMAP, RGBPLOT.
if nargin < 1
m = size(get(gcf,'colormap'),1);
end
bottom = [0 0 0.5];
botmiddle = [0 0.5 1];
middle = [1 1 1];
topmiddle = [1 0 0];
top = [0.5 0 0];
% Find middle
lims = get(gca, 'CLim');
% Find ratio of negative to positive
if (lims(1) < 0) & (lims(2) > 0)
% It has both negative and positive
% Find ratio of negative to positive
ratio = abs(lims(1)) / (abs(lims(1)) + lims(2));
neglen = round(m*ratio);
poslen = m - neglen;
% Just negative
new = [bottom; botmiddle; middle];
len = length(new);
oldsteps = linspace(0, 1, len);
newsteps = linspace(0, 1, neglen);
“MATLAB & Practical Application on Climate Variability Studies” 2
matlab-tutorial_exes_f... matlab-tutorial_exe_da... matlab-tutorial_day...sample as well as the latitude and longitude information, in matlab format....
MATLAB-tutorial 隐藏>> MATLAB 入门教程 1.MATLAB 的基本知识 . 1-1、基本...严格来说, 档案可再细分为命令集 M (Scripts) 及函数 (Functions) 前述的 ...
clear list=num2str([1980:1:1989]'); % Create a char array list % ... matlab-tutorial_exes_f... matlab-tutorial_do_exe... matlab-tutorial_day...
ACW Hovmoeller % Use icontourf, ecolorbar & bluewhitered additional functions.... matlab基础理论Tutorial 暂无评价 12页 免费 matlab-tutorial_exes_f... 40页...
Anonymous Functions This example shows how to define functions at the command... matlab-tutorial_exes_f... 40页 免费 关于Matlab中GUI的Shari... 32页 ...
Matlab Tutorial_IT/计算机_专业资料。matlab介绍...Matlab Workspace To list variables currently in ...2.1.4 Built-in Functions There is a vast ...
TUTORIAL MATLAB OPTIMIZATION TOOLBOX INTRODUCTION ...Toolboxes are collections of MATLAB functions (M-...If you want to get a list of help topics ...
matLab_tutorial_计算机软件及应用_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 matLab_tutorial_计算机软件及应用_IT/计算机_专业资料。MATLAB书籍...
Matlab Tutorial Today’s Topic 在MATLAB中数学模型的表示 中数学模型的表示 MATLAB和SIMULINK进行瞬态响应分析 用MATLAB和SIMULINK进行瞬态响应分析 Introduction Aims...
OFDM-Tutorial_matlab_信息与通信_工程科技_专业...(impulse) functions, each with a phase determined...Some options are provided in the following list....
热门文档