Matlab files used
Question: Generate a plot of the function \(\sin \) on the interval [−1, 1] with an appropriate title. Turn in the figure together with the commands you used to generate the figure.
Answer
Question: Find the solution to the following 20-by-20 system of equations. Turn in your code and the output \[ \begin{pmatrix} 1 & & \cdots & 1 & 0 \\ & 1 & & & \\ \vdots & & \ddots & & \vdots \\ & & & 1 & 0 \\ 1 & \cdots & & & 1 \end{pmatrix} x = \begin{pmatrix} 17 \\ 0 \\ \vdots \\ \\ 0 \end{pmatrix} \]
[Note: All entries in the matrix not explicitly mentioned are meant to be zero]
Answer
Question: Create a Matlab function called ssolve that:
\[ \begin{pmatrix} 1 & a & & & \\ & 1 & & & \\ & & \ddots & & \\ & & & 1 & \\ b & b & \cdots & b & 1 \end{pmatrix} x = \begin{pmatrix} 1 \\ 2 \\ \vdots \\ n-2 \\ 0 \\ n \end{pmatrix} \]
[Note: All entries in the matrix not explicitly mentioned are meant to be zero]
Answer
Question: Turn in a printout of the function ssolve and plots of the vectors
with the appropriate titles. Also turn in the code that generated these figures.
Answer
Now the two solutions are plotted.