finding location of logical 1 row wise by column

조회 수: 3 (최근 30일)
Cside
Cside 2019년 10월 15일
답변: Stephen23 2019년 10월 15일
Hi, I have a 8 x 621 logical and I would like to extract the row location of the logical 1 by columns i.e the result should be ans = [ 5 8 3 8 ....]
How may I do that?
Thank you!

채택된 답변

Stephen23
Stephen23 2019년 10월 15일
[idr,~] = find(yourMatrix)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by