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
Return the 3n+1 sequence for n
6311 Solvers
2461 Solvers
Who knows the last digit of pi?
565 Solvers
Sum of diagonal of a square matrix
1343 Solvers
1437 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!