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
17526 Solvers
370 Solvers
Sum of diagonals elements of a matrix
168 Solvers
246 Solvers
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
769 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!