3 %> @brief Draws image map
9 if nargin < 3 || isempty(direction)
13 width = numel(Y)/height;
14 if width ~= floor(width)
15 irerror(sprintf('Invalid height: number of image points not divisible by specified height: %d', height));
20 ncolors = size(cc, 1);
29 Y(~nanana) = 1+(ncolors-1)*(Y(~nanana)-mi)/(ma-mi);
32 if strcmp(direction, 'hor')
33 M = reshape(Y, width, height)';
35 M = reshape(Y, height, width);
39 colormap([0, 0, 0; cc]);
46 set(gca, 'XDir', 'normal', 'YDir', 'normal');
47 set(gca, 'XLim', [0, width+1], 'YLim', [0, height+1]);
function draw_image(in Y, in height, in direction)
Analysis Session (AS) base class.