Syntax For The Format: - Syntax For Matrix A: - Syntax For Matrix B: - Syntax For Matrix C
Syntax For The Format: - Syntax For Matrix A: - Syntax For Matrix B: - Syntax For Matrix C
Syntax For The Format: - Syntax For Matrix A: - Syntax For Matrix B: - Syntax For Matrix C
_____________________
B. In MATLAB enter the following matrices use appropriate format. Write your syntax in the space
provided.
MATLAB Syntax
1. Product of A and C
4. Sum of the product of A and its transpose and the product of C and its transpose.
5. Product of A and B
C. A matrix (plural matrices) is sort of like a “box” of information where you are keeping track of things
both right and left (columns), and up and down (rows).
As an example, if you had three sisters, and you wanted an easy way to store their age and number of
pairs of shoes, you could store this information in a matrix. The actual matrix is inside and includes the
brackets:
Solve the following problem using MATLAB. Write the syntax and the MATLAB out put on the space provided.
1. The grades of 3 students in a test are 95, 92,80 respectively; in projects are 100, 80 and 90;homework
100, 100 and 90; and in the quiz are 75;80and 90 . The tests are 40% of the grade, projects 15%,
homework 25%, and quizzes 20%.. Organize the data in a matrix and perform necessary operation to
find the final grades of the 3 students. Use MATLAB to verify the answer.
2. An outbreak of a virus hit the local public schools. Approximately 15% of the male and female juniors
and 25% of the male and female seniors are currently healthy, 35% of the male and female juniors
and 30% of the male and female seniors are currently sick, and 50% of the male and female juniors
and 45% of the male and female seniors are carriers of virus.