Revision 495
(checked in by cbc, 12 years ago)
|
Initial import of Stark code.
|
Line | |
---|
1 |
% |
---|
2 |
% load in nod, ele, and bat files |
---|
3 |
% |
---|
4 |
[in,x,y,z,bnd]=loadgrid('adrdep2kmg_n'); |
---|
5 |
size(in); |
---|
6 |
ne=ans(1); |
---|
7 |
size(x); |
---|
8 |
nn=ans(1); |
---|
9 |
% |
---|
10 |
% plot boundary and contours |
---|
11 |
% |
---|
12 |
figure |
---|
13 |
whitebg('w') |
---|
14 |
hold on |
---|
15 |
bndo=plotbnd(x,y,bnd); |
---|
16 |
set(bndo,'Color','k') |
---|
17 |
cval=[25 50]; |
---|
18 |
hc=lcontour2(in,x,y,z,cval); |
---|
19 |
set(hc,'Color','k') |
---|
20 |
% |
---|
21 |
% |
---|
22 |
% |
---|
23 |
xr=max(x)-min(x); |
---|
24 |
yr=max(y)-min(y); |
---|
25 |
axis([min(x)-.1*xr,max(x)+.1*xr,min(y)-.1*yr,max(y)+.1*yr]) |
---|
26 |
axis('square') |
---|
27 |
set(gca,'Box','on'); |
---|
28 |
% set(gca,'XTick',[]); |
---|
29 |
% set(gca,'YTick',[]); |
---|