Download and Installation Instructions Windows: Download one of following self-extracting files: 32-bit Windows: matlab_cdf341_win32.exe 64-bit Windows: matlab_cdf341_win64.exe Download leap second table: CDFLeapSeconds.txt Double-click the downloaded file to extract the files included in the patch to a directory. Invoke Matlab and issue the following command at the Matlab prompt: addpath '' For example, if the patch is installed under C:\matlab_cdf341_patch, the command should be addpath 'C:\matlab_cdf341_patch' Use Matlab as usual (e.g. data=cdfread('test.cdf','combinerecords', true)). Mac OS X: Download one of the the following compressed tarfiles: Mac OS X Intel 32-bit: matlab_cdf341_mac32.tar.gz Mac OS X Intel 64-bit: matlab_cdf341_mac64.tar.gz Mac OS X PPC 32-bit: matlab_cdf341_ppc32.tar.gz Download leap second table: CDFLeapSeconds.txt Move the Matlab-CDF-Patch directory in the downloaded file to the directory you want the patch to be installed under. Extract the files in the patch using the following command: tar zxvf Set environment variable CDF_LEAPSECONDSTABLE to the downloaded leap second table. The step is necessary when a new leap second is added and the shared library is not upgraded. This environment variable needs to be set when running CDF modules under MATLAB. setenv CDF_LEAPSECONDSTABLE <...>/CDFLeapSeconds.txt (C/TCsh) export CDF_LEAPSECONDSTABLE=<...>/CDFLeapSeconds.txt (Bourne/Bash) where <...> is the directory that holds CDFLeapSeconds.txt Invoke Matlab and issue the following command at the Matlab prompt: addpath '' For example, if the patch is installed under /Users/davidh, the command should be addpath '/Users/davidh/matlab_cdf341_patch' Use Matlab as usual (e.g. data=cdfread('test.cdf','combinerecords', true)). Linux / Solaris: Download one of the following compressed tar files: Linux 32-bit: matlab_cdf341_lin32.tar.gz Linux 32-bit: matlab_cdf341_lin64.tar.gz Solaris/Sparc 64-bit: matlab_cdf341_sol64.tar.gz Download leap second table: CDFLeapSeconds.txt Go to the directory where you want the patch to be installed under. Extract the files in the patch using the following command: tar zxvf Set environment variable CDF_LEAPSECONDSTABLE to the downloaded leap second table. The step is necessary when a new leap second is added and the shared library is not upgraded. This environment variable needs to be set when running CDF modules under MATLAB.. setenv CDF_LEAPSECONDSTABLE <...>/CDFLeapSeconds.txt (C/TCsh) export CDF_LEAPSECONDSTABLE=<...>/CDFLeapSeconds.txt (Bourne/Bash) where <...> is the directory that holds CDFLeapSeconds.txt Invoke Matlab and issue the following command at the Matlab prompt: addpath '' For example, if the patch is installed under /home/davidh, the command should be addpath '/home/davidh/matlab_cdf341_patch' Use Matlab as usual (e.g. data=cdfread('test.cdf','combinerecords', true)). If you have any questions or encounter problems, please send an email to gsfc-cdf-support@lists.nasa.gov and we'll respond as soon as possible.