How to expand matrix

1 次查看(过去 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)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by