13.01.2015 Views

Chapter 4: Programming with MATLAB - FET

Chapter 4: Programming with MATLAB - FET

Chapter 4: Programming with MATLAB - FET

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 locate a runtime errors, try the following:<br />

1. Always test your program <strong>with</strong> a simple<br />

version of the problem, whose answers can be<br />

checked by hand calculations.<br />

2. Display any intermediate calculations by<br />

removing semicolons at the end of statements.<br />

3. To test user-defined functions, try<br />

commenting out the function line and<br />

running the file as a script.<br />

4. Use the debugging features of the<br />

Editor/Debugger, which is discussed in<br />

Section 4.7.<br />

4-10<br />

Z.R.K

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

Saved successfully!

Ooh no, something went wrong!