Reference:http://www.mathworks.com/matlabcentral/answers/100950-how-can-i-have-a-standard-colorbar-for-different-plots-in-matlab-7-0-4-r14sp2
Question:
I am trying to compare different sets of data, with different sets of ranges using PCOLOR.
% Plot # 1figure(1);
C= rand(5); % Random values between 0 and 1 for Plot#1p=pcolor(C);
colorbar;% colorbar is set for figure(1)%Clears the workspace
clear all;
clc;% Plot # 2figure(2);
C= .25*rand(5) + .5; % Create random values between .375 and .625 for Plot # 2p=pcolor(C);
colorbar;% colorbar is set for figure(2)