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!