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
Find common elements in matrix rows
1273 Solvers
Flip the main diagonal of a matrix
511 Solvers
Basics: 'Find the eigenvalues of given matrix
327 Solvers
331 Solvers
2766 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!