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
6290 Solvers
Sort a list of complex numbers based on far they are from the origin.
4386 Solvers
Find the largest value in the 3D matrix
1076 Solvers
Sum of diagonals elements of a matrix
170 Solvers
1321 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!