NOTES ABOUT MATLAB look for help in /eng/applications/matlab/toolbox/matlab, check the general directory punctuation described in ops directory a *.m file contains a Matlab program (script) or function a *.mat file contains variables saved in the environment ; at the end of an assignment suppresses its output % is used for comments a = [1 2 3; 4 5 6] makes a matrix a(2,1) returns element at row 2, column 1 if sspause(0), return; end; % waits for user to press a key break prematurely stops execution (or breaks from a loop) clc clears the screen lookfor look for a word in the help files intro a few handy basics more on turns on paging of long printouts IMAGES Clear the variable space before you load an image.mat file. Then do a "whos" to see what variables were loaded. Type image(imagename) to view the image and then colormap(mapvariable) to set the color map. Hopefully the colormap was saved with the image. If it wasn't, here's how to create a 256-shade grayscale colormap: map = (0:255)' / 255 % creates a single-col. matrix of inc. values map = [map map map] colormap(map)