Hi, I have a matrix A and would like to scan through the values row by row until I find a value above x and stop there. The values prior to x will become 0.
For example: Matrix A = [3 10 2 5; 2 14 5 3] and I want values above 10. The new Matrix I am looking for is = [ 0 0 0 0; 0 14 5 3]. However, I do not want to individually change the first 5 elements of the matrix, I want the code to scan through values. How can I accomplish this?