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
2183 Solvers
Maximum running product for a string of numbers
1112 Solvers
5002 Solvers
Count decimal digits of a number
176 Solvers
What is Sum Of all elements of Matrix
292 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!