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일

0 개 추천

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개)

태그

질문:

2020년 12월 10일

댓글:

2020년 12월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by