Home > Mateda2.0 > knowledge_extraction > visualization > ShowImage.m

ShowImage

PURPOSE ^

[] = ShowImage(pcolors,fs,matrix)

SYNOPSIS ^

function[] = ShowImage(pcolors,fs,matrix)

DESCRIPTION ^

 [] = ShowImage(pcolors,fs,matrix)
 ShowImage: Shows the image contained in an incident matrix associating colors proportional to the
            cell values 

 INPUT

 [pcolors,fs]; % pcolors: range of colors for the  images. fs: Font size for the images                       

 Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function[] = ShowImage(pcolors,fs,matrix)
0002 % [] = ShowImage(pcolors,fs,matrix)
0003 % ShowImage: Shows the image contained in an incident matrix associating colors proportional to the
0004 %            cell values
0005 %
0006 % INPUT
0007 %
0008 % [pcolors,fs]; % pcolors: range of colors for the  images. fs: Font size for the images
0009 %
0010 % Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es)
0011 
0012  max_edges = max(max(matrix)); % Maximum number of values in the matrix
0013  figure     
0014  axes('Fontsize',fs);
0015  if max_edges>0
0016   image(pcolors*matrix/max_edges);
0017  else
0018  image(pcolors*matrix);
0019  end
0020  axis xy
0021  G = xlabel('Variable I');
0022  H = ylabel('Variable J');
0023  set(G,'Fontsize',fs);
0024  set(H,'Fontsize',fs);

Generated on Fri 04-Dec-2009 13:38:29 by m2html © 2003