1 |
%----------------------------------------------------------------------- |
---|
2 |
% [smin,smax,ibw]=contour_fe(in,x,y,bnd,scalar,smin,smax,ibw) |
---|
3 |
% This function creates a color plot of data using |
---|
4 |
% Matlab5.1 commands |
---|
5 |
%----------------------------------------------------------------------- |
---|
6 |
function [smin,smax,ibw]=contour_fe(in,x,y,bnd,scalar,smin,smax,ibw) |
---|
7 |
fprintf(1,'Scalar Range: %f to %f\n',min(min(scalar)),max(max(scalar))) |
---|
8 |
% |
---|
9 |
% Set contour levels (if 5 arguments are sent to function) |
---|
10 |
% |
---|
11 |
if nargin == 5 |
---|
12 |
smin=input('Enter min contour level desired: '); |
---|
13 |
smax=input('Enter max contour level desired: '); |
---|
14 |
ibw =input('Enter the contour interval: '); |
---|
15 |
end |
---|
16 |
% |
---|
17 |
% Generate Plot |
---|
18 |
% |
---|
19 |
clear cval; |
---|
20 |
cval=smin:ibw:smax; |
---|
21 |
bndo=plotbnd(x,y,bnd); |
---|
22 |
set(bndo,'Color','k') |
---|
23 |
hc=lcontour2(in,x,y,scalar,cval); |
---|
24 |
xlabel([num2str(smin),' to ',num2str(smax),' by ',num2str(ibw)]) |
---|