For example:
3. Let ? = (0200;0405;7100). We define ??(?) = (
3
1
4
2
).
??(?) is a column vector containing the positions of the first nonzero entry of each column.
Write a Matlab script whose input is a matrix ? and output is ??(?)
Best Answer