source:
trunk/src/test_struct2nc.m
@
134
Last change on this file since 134 was 129, checked in by , 14 years ago | |
---|---|
File size: 249 bytes |
Line | |
---|---|
1 | % program to test struct2nc for creating netcdf files |
2 | Data.ListVarName={'A'}; |
3 | Data.VarDimName={{'ny','nx'}}; |
4 | [x,y] = meshgrid([-2:.2:2]); |
5 | Data.A = x.*exp(-x.^2-y.^2); |
6 | % |
7 | err=struct2nc('test.nc',Data) |
8 | if isempty(err) |
9 | display('test.nc written') |
10 | end |
Note: See TracBrowser
for help on using the repository browser.