Delete element of an array on the basis of other arrays

1 visualización (últimos 30 días)
luca
luca el 14 de Oct. de 2019
Comentada: luca el 14 de Oct. de 2019
Hi given arrays
Y= [175 175 175 175 175 175 175 175 175 175 175 175];
SETT=[178 130 120 140 100 160 179 165 157 140 130 180 140];
and
T = [25 60 50 40 30 30 30 35 10 34 23 45 12];
Considering each column, I want to create a new vector U where I put just the value of T where the element on the saem column of SETT does not exceed the value in Y.
So in this case I want to obtain
U=[60 50 40 30 30 35 10 34 23 12].
May someone helo me with the code?

Respuesta aceptada

madhan ravi
madhan ravi el 14 de Oct. de 2019
U = T(Y>SETT)
  2 comentarios
luca
luca el 14 de Oct. de 2019
thanks for the advice madhan!!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by