Create new matrix by deleting columns with negative numbers from old matrix

I'm stuck with this problem where i need to create a matrix M from matrix A(5x5) by deleting columns from A that contain a negative number. Using loops is unfortunately forbidden. Any help is greatly appreciated.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!