Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The first part is provided with the following data and needs two matlab commands

ID: 3632725 • Letter: T

Question

The first part is provided with the following data and  needs two matlab commands to be provided as described at the bottom:

 

1. Let Xp and Xn be the positive and negative training data, respectively.
The next question refers to the following data:

and

 

Write MATLAB command to compute the class specific means of data matrices Xp and Xn. Your code needs to return the mean as a column vector.

AND:

Write MATLAB code to compute the class specific covariance matrices of data matrices Xp and Xn. You cannot use any loop command.

Explanation / Answer

x_p = [4 2 2 3 4 6 3 8;1 4 3 6 4 2 2 3;0 1 1 0 -1 0 1 0]; x_n = [9 6 9 8 10;10 8 5 7 8;1 0 0 1 -1]; %% To compute specific means mean(x_p,2) mean(x_n,2) %% To Compute specific covariance matrices cov(x_p) cov(x_n)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote