How to expand matrix

조회 수: 3 (최근 30일)
Kamil Kacer
Kamil Kacer 2020년 12월 10일
댓글: Ameer Hamza 2020년 12월 10일
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

채택된 답변

Ameer Hamza
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
Kamil Kacer
Kamil Kacer 2020년 12월 10일
Thanks so much
Ameer Hamza
Ameer Hamza 2020년 12월 10일
I am glad to be of help!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by