This document is a second project assignment for MTH 229, Calculus Computer Laboratory at the College of Staten Island CUNY. It focuses on using MATLAB to graph functions and understand the importance of defining appropriate x-value arrays.
This assignment is intended for students enrolled in the course who need to practice translating mathematical functions into MATLAB code and visualizing them. It’s used to reinforce understanding of how the number of points used to define a graph impacts its appearance and to highlight the correct syntax for performing mathematical operations on vectors.
This project does *not* provide a comprehensive tutorial on MATLAB. It assumes students have some basic familiarity with the software. It also doesn’t cover advanced graphing techniques beyond those presented in the exercises. Students will still need to consult other resources to fully master MATLAB’s plotting capabilities.
This document provides two exercises, each with multiple-choice questions, designed to test your ability to: define x-value arrays using both colon notation and `linspace`; correctly define corresponding y-values for given functions; and understand the proper syntax for performing element-wise operations on vectors (using `.*` and `./`). The document also includes a discussion of scalar and vector arithmetic in MATLAB, with examples. It does *not* include the solutions to the exercises, nor does it provide detailed explanations of the underlying calculus concepts.