How to expand matrix
1 回表示 (過去 30 日間)
古いコメントを表示
Hi I have matrix 1 row 12225 columns and I want to colerate in with matrix 1 row 12230 columns how to I round them to same length please
0 件のコメント
採用された回答
Ameer Hamza
2020 年 12 月 10 日
編集済み: Ameer Hamza
2020 年 12 月 10 日
You can shorten the second vector by removing the extra elements
A; % 1x12225 vector
B; % 1x12230 vector
B_new = B(1:numel(A));
corrcoef(A, B_new)
2 件のコメント
その他の回答 (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!