Hello, I have two questions. I would be so glad if you can please help me.
1. How can I extract the number of non-zero elements in a matrix or in an array?
2. I have 3×3 (3d) array which is a cell. How can I add the diagonal elements or off-diagonal elements in a cell?
Best Answer