23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Hierarchical Data Format (HDF4) Files<br />

Step 4: Importing Data and Metadata<br />

To import the data set you have selected, click the Import button, bottom<br />

right corner of the Importing and Subsetting pane. Using the Importing and<br />

Subsetting pane, you can<br />

• Specify the name of the workspace variable — By default, the HDF<br />

Import Tool uses the name of the HDF4 data set as the name of the<br />

<strong>MATLAB</strong> workspace variable. In the following figure, the variable name<br />

is Example_SDS. To specify another name, enter text in the Workspace<br />

Variable text box.<br />

• Specify whether to import metadata associated with the data set — To<br />

import any metadata that might be associated with the data set, select the<br />

Import Metadata check box. To store the metadata, the HDF Import<br />

Tool creates a second variable in the workspace with the same name<br />

with “_info” appendedtoit. Forexample,if you select this check box,<br />

the name of the metadata variable for the data set in the figure would be<br />

Example_SDS_info.<br />

• Save the data set import command syntax — The Dataset import<br />

command text window displays the <strong>MATLAB</strong> command used to import<br />

the data set. This text is not editable, but you can copy and paste it into the<br />

<strong>MATLAB</strong> Command Window or a text editor for reuse.<br />

The following figure shows how to specify these options in the HDF Import<br />

Tool.<br />

Import metadata<br />

with data set<br />

Specify name of<br />

variable to store<br />

data set<br />

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

used to import data<br />

Click here to import<br />

data set<br />

7-39

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

Saved successfully!

Ooh no, something went wrong!