Effacer les filtres
Effacer les filtres

equaling vectors length

2 vues (au cours des 30 derniers jours)
SAM alimostafa
SAM alimostafa le 29 Avr 2011
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??????

Réponses (1)

Walter Roberson
Walter Roberson le 29 Avr 2011
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));

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by