Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Returning values in a matrix between 1 and 2

2 visualizaciones (últimos 30 días)
Kimberly
Kimberly el 20 de Abr. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
how would I write a script that returns the values in a matrix between 1 and 2. both using for loops and not.
  4 comentarios
Star Strider
Star Strider el 20 de Abr. de 2014
See the gt function and its friends (all linked-to at the end of the page).
Kimberly
Kimberly el 21 de Abr. de 2014
I just ended up using the find function for the matrix and it worked

Respuestas (1)

Walter Roberson
Walter Roberson el 21 de Abr. de 2014
See also logical indexing
values = YourMatrix(YourMatrix > 1 & YourMatrix < 2);

La pregunta está cerrada.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by