Hi all
I have a matrix 'A' including some elments equal to zero. i want to make an array 'B' with the non-zero elements of A . for example:
A = [46 0 23;10 73 0; 0 57 13]B=[46 23 10 73 57 13] How can I write this program? Thanks
logical indexing
A = [46 0 23;10 73 0; 0 57 13]B=[46 23 10 73 57 13] How can I write this program? Thanks
Best Answer