Chapter 4: Programming with MATLAB - FET
Chapter 4: Programming with MATLAB - FET
Chapter 4: Programming with MATLAB - FET
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