Hi all
i have a matrix like that
1 0 10 1 00 0 01 0 1
i want to save only the first non zero values in each column and obtain:
1 0 10 1 00 0 00 0 0
How can i do that?
Thank you for the help
Regards
MATLABmatrix
1 0 10 1 00 0 01 0 1
1 0 10 1 00 0 00 0 0
Best Answer