Find row and collumnumber in matrix.
1 view (last 30 days)
Show older comments
Hi all,
I have got a cell array with cells of different lengths: A=[0,0,0,0],[0],[0],[1],[0] and I would like to know the location of 1. When I use
c = find([a{:}] == 1); I get 7, instead of 4. How can I find the location of the 1?
Thanks, Daan
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!