What am I doing wrong with the function 'topkrows'
Mostrar comentarios más antiguos
I am trying to use the function 'topkrows' - https://www.mathworks.com/help/matlab/ref/topkrows.html
Yet I cannot even do the example - when I try to use it I get the error "Undefined function 'topkrows' for input arguments type 'double'.
I also cannot find it when searching which topkrows.
Do I have a corrupted MATLAB download (using R2017a)
Any help would be great!
Respuesta aceptada
Más respuestas (1)
Razvan Carbunescu
el 11 de Abr. de 2018
0 votos
topkrows was initially introduced in R2016b as a function for tall arrays and tables only.
In R2017b the functionality was added for regular matrices and tables.
As a workaround in R2017a should use S = sortrows(A); and then index S(1:k,:);
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!