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!