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

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

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

To open the notepad editor and return control immediately to <strong>MATLAB</strong><br />

dos('notepad file.m &')<br />

The next example returns a one in s and an error message in w because foo is<br />

not a valid shell command.<br />

[s, w] = dos('foo')<br />

This example echoes the results of the dir command to the Command Window<br />

as it executes as well as assigning the results to w.<br />

[s, w] = dos('dir', '-echo');<br />

See Also Special Characters (!), unix<br />

dos<br />

2-459

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

Saved successfully!

Ooh no, something went wrong!