- Define and test a function to generate the covariance matrixfor an input vector. For example, if the input is v=[1, 2, 5], thenthe matrix is v*vT =
1 2 5
2 4 10
5 10 25
I need to program this in Python 3 defined as a function asapplease. thank you.
Solution
Output:-
OR
OR