show_polygonsValues

PURPOSE ^

SYNOPSIS ^

function show_polygonsValues(imdl,data,colors,edgeColor)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function show_polygonsValues(imdl,data,colors,edgeColor)
0002 
0003 if nargin<3
0004     colors= 'jet';
0005     edgeColor= 'none';
0006 elseif nargin<4
0007     edgeColor= 'none';
0008 end
0009 
0010 polygonsX= imdl.inv_solve.polygonsX;
0011 polygonsY= imdl.inv_solve.polygonsY;
0012 
0013 if size(data,1)>1 % data must be a row vector
0014     data= data';
0015 end
0016 if size(polygonsX,2)~= size(data,2)
0017     polygonsX= polygonsX';
0018 end
0019 if size(polygonsY,2)~= size(data,2)
0020     polygonsY= polygonsY';
0021 end
0022 
0023 fill(polygonsX,polygonsY,data,'EdgeColor',edgeColor);
0024 hold on;
0025 % colorbar
0026 if ischar(colors)
0027     colormap(colors)
0028 else
0029     set(gcf,'Colormap',colors)
0030 end
0031 
0032 
0033 end

Generated on Wed 21-Jun-2017 09:29:07 by m2html © 2005