Is there any way to code this on a different way?
Mostrar comentarios más antiguos
I want to get the max value of a variable and the number #100(max). I got this code:
[b,index] = maxk(lat1,100);
b_new = b([1,100])
Is there any way to write it to get directly the #1 and #100?
2 comentarios
Walter Roberson
el 16 de Feb. de 2022
I wonder if you want max(lat1, 100)
flashpode
el 16 de Feb. de 2022
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Mathematics 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!