23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Examples Read all of the data from the file.<br />

See Also cdfinfo<br />

data = cdfread('example.cdf');<br />

Read just the data from variable 'Time'.<br />

data = cdfread('example.cdf', 'Variable', {'Time'});<br />

cdfread<br />

Read the first value in the first dimension, the second value in the second<br />

dimension, the first and third values in the third dimension, and all values in<br />

the remaining dimension of the variable 'multidimensional'.<br />

data = cdfread('example.cdf', 'Variable', ...<br />

{'multidimensional'}, 'Slices', [0 1 1; 1 1 1; 0 2 2]);<br />

This is similar to reading the whole variable into 'data', and then using the<br />

<strong>MATLAB</strong> command<br />

data{1}(1, 2, [1 3], :)<br />

2-225

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!