delete matrix row with certain value

 Accepted Answer

More Answers (1)

A = [2 3 4 5; 6 7 8 9; 2 1 1 1; 3 3 3 3];
A( any(A == 2, 2 ),: ) = [];

Categories

Find more on Simulink in Help Center and File Exchange

Tags

Asked:

on 11 Nov 2014

Commented:

on 11 Nov 2014

Community Treasure Hunt

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

Start Hunting!