root/applications/bdmtoolbox/tutorial/merging/contour_2.m
@
409
Revision 409, 238 bytes (checked in by smidl, 15 years ago) |
---|
Rev | Line | |
---|---|---|
[409] | 1 | function contour(x,y,z,str) |
2 | % | |
3 | xlin=linspace(min(x),max(x),33); | |
4 | ylin=linspace(min(y),max(y),33); | |
5 | [X,Y]=meshgrid(xlin,ylin); | |
6 | Z=griddata(x,y,z,X,Y,'nearest'); | |
7 | % | |
8 | if nargin<4 | |
9 | contour(X,Y,Z,7) | |
10 | else | |
11 | contour(X,Y,Z,str) | |
12 | end |
Note: See TracBrowser
for help on using the browser.