root/matlab/contour_2.m
@
188
| Revision 184, 173 bytes (checked in by smidl, 17 years ago) |
|---|
| Line | |
|---|---|
| 1 | function contour(x,y,z) |
| 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,'cubic'); |
| 7 | % |
| 8 | contour(X,Y,Z) |
Note: See TracBrowser
for help on using the browser.
