finding location of logical 1 row wise by column

3 visualizaciones (últimos 30 días)
Cside
Cside el 15 de Oct. de 2019
Respondida: Stephen23 el 15 de Oct. de 2019
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!

Respuesta aceptada

Stephen23
Stephen23 el 15 de Oct. de 2019
[idr,~] = find(yourMatrix)

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB 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!

Translated by