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
1962 Solvers
Who knows the last digit of pi?
557 Solvers
Create a square matrix of multiples
383 Solvers
middleAsColumn: Return all but first and last element as a column vector
387 Solvers
376 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!