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.

3 Basic Program Components<br />

This M-file<br />

1 Saves the input arguments a, b, q, andr to a MAT-file in the workspace<br />

using the save command.<br />

2 Uses the shell escape operator to access a C or Fortran program called<br />

gareqn that uses the workspace variables to perform its computation.<br />

gareqn writes its results to the gardata MAT-file.<br />

3 Loads the gardata MAT-file described in “Using MAT-Files” to obtain the<br />

results.<br />

3-30

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

Saved successfully!

Ooh no, something went wrong!