why is the determinant of the covariance of the matrix "error" negative?

조회 수: 7 (최근 30일)
Yu
Yu 2013년 12월 6일
답변: Sivsankar 2024년 11월 7일
load(Error); det(cov(Error));

답변 (1개)

Sivsankar
Sivsankar 2024년 11월 7일
Hi @Yu,
The code you've provided would throw an error. It cannot read the mat file. So, I've modified your code as follows to make it work:
C = load("Error.mat");
det(cov(C.C))
Kindly try this code out.
However, when I'm trying to computing the covariance of the matrix in ‘Error.mat’ file, I'm getting '2.9297e+05' as the answer (which is 292970). I'm not getting a negative value.
Hope this helps.
Thanks!

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by