equaling vectors length
显示 更早的评论
hi i have two matrices one has size 13x1 and the other is 31x1 and i want to make them equal in length=13x1 is there any function can do that??????
回答(1 个)
Walter Roberson
2011-4-29
Here is a code version that will handle any 2D matrices:
S = min(size(A),size(B));
A = A(1:S(1),1:S(2));
B = B(1:S(1),1:S(2));
类别
在 帮助中心 和 File Exchange 中查找有关 Mathematics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!