
Reads specific values from the records of one variable in the CDF file. The return alue, data, is returned in a cell array having length(varnames) number of columns and a row for each record requested. Reads only those variables specified in the 1-by-N or N-by-1 cell array of strings, varnames.

The return value, data, is a cell array having length(recnums) number of rows and as many columns as there are variables. Reads only those records specified in the vector, recnums. The return value, data, is a cell array in which each row contains a record and each column represents a variable.

Reads all of the variables from each record of the Common Data Format (CDF) file specified in the string, file. )ĭata = cdfread(file, 'slices', dimensionvalues. )ĭata = cdfread(file, 'variables', varnames. Cdfread (MATLAB Functions) MATLAB Function Referenceĭata = cdfread(file, 'records', recnums.
