remove obsevations with x=0
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
alpedhuez
el 1 de Jun. de 2020
Respondida: KSSV
el 1 de Jun. de 2020
I have a pair of observations
I just want to choose the pairs that
. Is there any simpler way than writing a loop?
0 comentarios
Respuesta aceptada
KSSV
el 1 de Jun. de 2020
Let A be your 100*2 data. With first column as x and second column as y.
idx = A(:,1)>0 ; % get logical indices of x which are > 0
iwant = A(idx,:) ;
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical 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!