How to compare the length of two matrices and pick the shorter one?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
matlabuser12
il 15 Ago 2016
Risposto: Walter Roberson
il 15 Ago 2016
have two nx1 matrices that I want to say for whichever matrix is shorter use that length.
0 Commenti
Risposta accettata
Walter Roberson
il 15 Ago 2016
shorter_length = min( length(FirstVector), length(SecondVector) );
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices 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!