How to save index of Values of an item in a matrix?
1 view (last 30 days)
Show older comments
Robert on 17 Mar 2023
Answered: Dyuman Joshi on 17 Mar 2023
I have a matrix of of elements like
I'd like to go through the matrix and at each element where the value is greater than zero, I want to save the index to a new matrix such that the new matrix looks like:
[4, 9, 11]
Find more on Matrix Indexing 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!