23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Using the Import Wizard<br />

Header Format<br />

When reading in data from a text file or the clipboard, the Wizard looks for<br />

any lines at the top that have no numeric characters, and assigns these lines<br />

to the variable textdata. <strong>MATLAB</strong> counts these lines and displays the count<br />

in the value field of Number of text header lines in the upper right of the<br />

Import Wizard window. You can adjust this count if it does not accurately<br />

represent the header format within the file.<br />

Note The Number of text header lines selector applies only to column<br />

headers. It has no effect on row headers.<br />

<strong>MATLAB</strong> creates a row vector from the bottommost of these lines and assigns<br />

it to the variable colheaders.<br />

Generate M-Code Checkbox<br />

The Generate M-code checkbox at the bottom of the Import Wizard dialog<br />

box applies to both text and binary data, and thus is described in “Automated<br />

M-Code Generation” on page 6-16.<br />

To continue, click Next at the bottom of the dialog box.<br />

Determining Assignment to Variables<br />

At this point, the Import Wizard displays the dialog box shown below. This<br />

dialog displays data for both text and binary files.<br />

6-13

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

Saved successfully!

Ooh no, something went wrong!