if I have a vector of 20 elements, how can I extract the 5 minimum elements in that vector
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Bashir Yusuf Bichi
el 2 de Dic. de 2017
Respondida: Steven Lord
el 2 de Dic. de 2017
V=[23,56,12,90,45,21,56,10,70,100,15,...] a=[10,12,15,21,23]
0 comentarios
Respuesta aceptada
Walter Roberson
el 2 de Dic. de 2017
sort() and take the first 5 elements of the output.
0 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!