Need a matlab code for creating COVARIANCE matrix
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a matrix size - (1024rows x 3 columns). I need to create such a code that it will calculate covariance matrix for first 4 rows...i.e. rows (1to 4) then (5 to8) then row (9-12) then (13-16) and continue till ...rows(1020 to 1024. I am mentioning my first 4 rows here e.g.
8.3000 74.7000 0.1080
A= 8.2000 74.9000 0.1080
8.2000 73.7000 0.1080
8.7000 72.9000 0.0450
calculated manually-
cov (A) =
0.0567 -0.1700 -0.0073
-0.1700 0.8633 0.0241
-0.0073 0.0241 0.0010
code should work till calculates cov matrix for last rows (1020 to 1024).
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!