How to expand matrix
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kamil Kacer
am 10 Dez. 2020
Kommentiert: Ameer Hamza
am 10 Dez. 2020
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 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 10 Dez. 2020
Bearbeitet: Ameer Hamza
am 10 Dez. 2020
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!