Course Information
| Instructor | V. Paul Pauca (paucavp AT w f u DOT e d u) |
| Time | T - Th, 9:30 - 10:45, Manchester 24 |
| Office | Manchester 235 |
| Office hours | M W F 10-12; T Th 3 - 4; or by appointment |
| Syllabus | |
| Textbook | MATLAB: A Practical Introduction to Programming and Problem Solving - Attaway |
Lecture Notes
- Introduction [pdf]
- Variables, expressions, constants, and alien math [pdf]
- Basics of Problem solving: top-down design [pdf]
- More on problem solving [pdf]
Here is the idealWeight.m program shown in class - Vectors [pdf]
- Functions [pdf]
Code shown in class: calcIdealWeightFemale.m, calcIdealWeightMale.m, idealWeightPlot.m - Random numbers, relational and logical operators, if-else statement [pdf]
Laboratory Assignments
- Lab 1: Getting Started with Matlab [pdf] Code: idealWeightProgram.m
- Lab 2: Top-Down Programming Design [pdf]
- Lab 3: Arrays and Functions [pdf]
- Lab 4: Game of Chance and GPA [pdf]
- Lab 5: Introduction to Loops [pdf]
- Lab 6: Loops and Random Walks [pdf]
Here is a movie of two random walkers in the 2-D plane. - Lab 7: Review questions and problem solving[html]
- Lab 8: Guessing Game and the Sierpinski Triangle [pdf]
- Lab 9: Sound Processing in MATLAB [pdf]
Here is the song abusadora.wav. - Lab 10: Sorting, Recursion, and Time Performance [pdf]
Here is the strlexcmp.m function and the list of countries worldCountries.mat.
Here are the MATLAB functions for the time performance experiment: numsortPerf.m for timing the performance of numsort() and strsortPerf.m for timing the performance of strsort(). - Lab 11: Convolution and Image Enhancement [pdf]
Here are the images you might use for this lab: moon.tif and noisyImage.tif.
Programming Assignments
Resources
- The MathWorks has a good set of tutorials for MATLAB. You might want to look through them at some point.