How to find element index in a matrix
1 view (last 30 days)
Show older comments
Hello sir kindly help me to find position of element '1' in matrix 'v'. i.e. (3,3).
0 Comments
Accepted Answer
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)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!