Professional Documents
Culture Documents
Dauz Exercise 3
Dauz Exercise 3
EXERCISE 4
DUE: 5:00 P.M. OF SEPTEMBER 8, 2021
INSTRUCTIONS:
1. Use MATLAB editor.
2. Submit your code along with the output in PDF file. Follow the prescribed format for
filename.
3. If answers require explanation, write your answer as a text description.
4. Indicate your Name, Course & Schedule, Date of Submission, and Exercise No. at
the beginning of the code.
5. Late submission will have deduction.
Task 2
Create a column matrix “B” containing odd values 1 to 9 using semicolon;
Task 3
Create a 2x3 matrix “C” containing 10,20,30 at first row and 40,50,60 at second row.
Task 4
Create a matrix “D” containing values from 5 to 10 evenly spaced by 1 using “:” function.
Task 5
Create a matrix “E” evenly spaced by 3 from 1 to 12 using “:” function.
Task 6
Do task 5 but now using linspace command.
Task 7
Transpose the matrix E.
Task 8
Create a 2X2 Matrix M with values from 6 to 9.
Task 9
Create a 3X2 Matrix N with values from 10 to 15.
Task 10
Multiply M and N. Explain why the error occurred.
- Because the value of the inner circle is not equal.
Task 11
Now transpose matrix N and name the variable N2.
Task 12
Multiply matrix M and matrix N2.
Task 13
Create a matrix X with values .5 to 2.5 evenly space by .5.
Task 14
Create a matrix Y with values 1 to 5 evenly spaced by 1.
Task 15
Create a new matrix using matrix X and Y, size of 2x5 and name it Z.
Task 16
Find the determinant of Matrix M using “det()” command.
Task 17
Create a 3x3 matrix of random numbers and find its determinant.