remove obsevations with x=0

1 vue (au cours des 30 derniers jours)
alpedhuez
alpedhuez le 1 Juin 2020
Réponse apportée : KSSV le 1 Juin 2020
I have a pair of observations I just want to choose the pairs that . Is there any simpler way than writing a loop?

Réponse acceptée

KSSV
KSSV le 1 Juin 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,:) ;

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by