How to store corresponding data whenever zero comes in that column from excel sheet?

10 views (last 30 days)
I have excel sheet which contains 18 columns,I want to check one column whenever zeros comes in that column , store corresponding another columns data. How to do?

Answers (1)

KSSV
KSSV on 21 Dec 2022
LEt A be your data/ matrix and you want to check 0's in the first column.
iwant = A(A(:,1)==0,:)

Categories

Find more on Data Import from MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!