lecture6.pdf - ECE 3040 Lecture 6 Programming Examples © Prof Mohamad Hassoun This lecture provides the solution for several programming problems

lecture6.pdf - ECE 3040 Lecture 6 Programming Examples ©...

This preview shows page 1 - 8 out of 17 pages.

ECE 3040 Lecture 6: Programming Examples © Prof. Mohamad Hassoun This lecture provides the solution for several programming problems Plotting piecewise functions Computing the factorial of a number Beeping Looping vs vectorization speed: tic and toc commands Passing an “ anonymous function” to Matlab function Approximation of definite integrals: Riemann sums Computing cos(?) from its power series Stopping criteria for iterative numerical methods Computing the square root Evaluating polynomials Appendix: Errors and Significant Digits
Image of page 1

Subscribe to view the full document.