Matlab Programming
|
Course Objectives
|
| In this course, teaching the basic principles of programming and of implementing mathematical concepts in MATLAB is aimed. |
|
Course materials
|
- Insight Through Computing: A Matlab Introduction to Computational Science and Engineering by C. F. Van Loan and K.-Y. D. Fan. SIAM Publication, 2009.
- MATLAB: An Introduction with Applications, by Amos Gilat, 2nd edition, Wiley, 2004.
|
|
Assessment
|
|
40% Midterm exam + 60% Final exam
|
|
Prerequisites
|
none
|
| Week |
Subjects |
| 1. |
Introduction to Matlab and programming basics |
| 2. |
Conditionals, nested conditionals, logical operators |
| 3. |
Iteration: for and while |
| 4. |
Developing algorithms, nested loops, discrete vs. continuous, plotting |
| 5. |
User-defined functions, executing a user-defined function |
| 6. |
Probabilities and averages, vectors, plots, simulation |
| 7. |
2-d Arrays-matrix, matrix examples, contour plotting |
| 8. |
Midterm exam |
| 9. |
Working with images |
| 10. |
Characters and strings, cell arrays, structures and structure arrays |
| 11. |
Working with numeric/text data, file procedures |
| 12. |
Computing on a grid (matrix & cell arrays) |
| 13. |
Sorting and Searching |
| 14. |
Divide and Conquer; Recursion |
| 15. |
Algorithm efficieny, model analysis |
| |
Final Exam |
|