How to find element index in a matrix

1 view (last 30 days)
Hello sir kindly help me to find position of element '1' in matrix 'v'. i.e. (3,3).ele.png

Accepted Answer

SYED IMTIAZ ALI SHAH
SYED IMTIAZ ALI SHAH on 11 Aug 2019
Edited: SYED IMTIAZ ALI SHAH on 11 Aug 2019
[c d] = find(v == 1);
e = [c d]

More Answers (0)

Categories

Find more on Images 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!