equaling vectors length
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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??????
0 Commenti
Risposte (1)
Walter Roberson
il 29 Apr 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));
0 Commenti
Vedere anche
Categorie
Scopri di più su Elementary Math in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!