3 %> @brief Draws indexed image map
5 %> @param Y vector with integer values
11 width = numel(Y)/height;
12 if width ~= floor(width)
13 irerror(sprintf('Invalid height: number of image points not divisible by specified height: %d', height));
16 if nargin < 3 || isempty(direction)
19 if nargin < 4 || isempty(classlabels)
32 h(i) = plot(-1, 0, 's', 'Color', cm2(i, :), 'MarkerSize', 20, 'MarkerFaceColor', cm2(i, :));
39 if strcmp(direction, 'hor')
40 M = reshape(Y, width, height)';
42 M = reshape(Y, height, width);
53 set(gca, 'XDir', 'normal', 'YDir', 'normal');
54 set(gca, 'XLim', [1, width], 'YLim', [1, height]);
function classes2colormap(in y, in flag_skip)
function classes2legends(in Y, in classlabels)
Analysis Session (AS) base class.
function draw_indexedimage(in Y, in height, in direction, in classlabels)