Parent Directory
|
Revision Log
|
Revision Graph
interface for old/new Matlab netcdf toolbox
1 | function [] = ncclose(ncid); |
2 | % close a netcdf file. |
3 | |
4 | global useNativeMatlabNetcdf; |
5 | if isempty(useNativeMatlabNetcdf); useNativeMatlabNetcdf = ~isempty(which('netcdf.open')); end; |
6 | |
7 | |
8 | if useNativeMatlabNetcdf; |
9 | netcdf.close(ncid); |
10 | else;%try to use old mex stuff |
11 | close(ncid); |
12 | end; |
13 | |
14 | |
15 |
ViewVC Help | |
Powered by ViewVC 1.1.22 |