Hello, Shaul Salomon. I suggest testing for an empty return variable w, rather than requiring w = [], which is not the same thing. See Solution 1538012, which produces a 0×1 empty column vector. —DIV
First non-zero element in each column
593 Solvers
351 Solvers
Who knows the last digit of pi?
557 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3619 Solvers
2336 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!