CS1112 Fall 2015
Prelim 1 Topics
Topics/Ideas
- Scalar variables and operations
- Selection (conditional)
- Iteration (while-loop, for-loop), including nested loops
- User-defined functions
- 1-dimensional array (vector)
- Vectorized code (as discussed in lecture)
- MATLAB predefined (built-in) functions (those used in lecture/discussion/projects)
- good programming style
Students are responsible for all material covered in lectures, discussions,
homework, and the assigned reading:
- Lecture: Lecture 1-12, plus the part of Lecture 13 on vectorized code
Note that 2-d array (matrix) will NOT be covered in Prelim 1.
- Discussion: up to and including Exercise 6
- Homework: Projects 1, 2, and 3
- Assigned reading: See CS1112-->Lecture Materials,
up to and including Lecture 12
(Chapters 1-6)
Examples on how to use selected MATLAB predefined (built-in) functions
will be given on the exam.
Write scripts and functions as specified in each exam question;
specifically, write functions and subfunctions only if they are requested.
Read this note on vectorized code.
Matlab commands that students may not use: