Matlab Assignment
Matlab Assignment
All hardcopy assignments (handwritten parts and MATLAB results document) are due
during your next lab session (for HW 1 Friday 02/09/2018). Attach the honor statement to the
front of your work. Show all of your works for credit. Clearly mark/box your answers. Works
that are illegible will receive a zero for the assignment. Submit your program files through
WebCampus. Make sure you follow the lab submission guidelines and put correct file name
format. Failure to follow the posted guidelines will result in loss of points even if your code and
answers are correct. The upload deadline is the following Monday after the lab at 11:59pm
(for HW 1 Monday 02/12/2018), and you will not be able to upload your files afterwards (so,
don’t wait until the last minute!!).
[5pts]Problem #1)
1.Import the data found in the Lab 1 folder and define it as y.
2.Create an x vector from 0 to 100 with a spacing of 1.
3.Plot the data using a line with red * symbols. Label the axes as x and y.
4.Repeat the process for the z data set. Plot both sets of data on the same plot and include a
legend. Use a different symbol and color for the z data.
5. In the results document just provide the plot.
1 3 2 6
𝐴=[ ] 𝐵=[ ]
7 5 1 4
3 0 2 −1 8
1 −2 3
𝐴=[ ] 𝐵 = [−1 5] 𝐶 = [−1 9 3 ]
2 0 5
3 2 8 3 10000
a) A*B
b) B*A
c) CT. What can you tell about C matrix?