Exercise 1: Here we are doing actual matrix operations. So we no longer use a period preceding matrix operators. (a) Use the matrix operator *. (b) See top of page 2. (c) See page 3. (d) Do NOT rewrite the code to create the entire matrix. (e) See page 2.
Exercise 2: (a) You should follow the same logic as the example at the top of the page. Do NOT assign values to r, a, or n inside the M-file!!! The problem says the function file should accept values for r, a, and n as input arguments. This means you only assign them values when you call (or invoke) the function in the command window. (b) You still need to use a function file.
Exercise 3: See page 5 for similar example.
Exercise 4: We’ll talk about this one in class.
Exercise 5: This problem is almost identical to example on the same page. Don’t forget to test the function by calling it in the command window using the appropriate test values


0 comments