% conplot.m - Matlab script to generate contour plots from data
% after running script, use the mouse to label contours
% plots can be printed using the matlab print command
filename = input('Enter filename to contour (enclose name in single quotes):');
handle = fopen(filename,'r');
M = input('Enter number of columns :');
N = input('Enter number of rows :');
[Con, count] = fscanf(handle,'%f',[M,N]);
fclose(handle);
Con=Con';
Maxcon = max(max(Con))
Mincon = min(min(Con))
dcon = input('Enter contour interval:');
conlev = [Mincon:dcon:Maxcon];
clg, hold off
theplot = contour(Con,conlev);
axis('ij')
axis('square')
clabel(theplot,'manual')

