How to delete columns of a matrix that have fewer than 3 non-zero elements
Show older comments
Hello,
How can I delete columns of a matrix that have fewer than 3 non-zero elements? Thank you!
4 Comments
osminbas
on 1 Mar 2012
Sean de Wolski
on 1 Mar 2012
Like fewer than three non-zero elements or is it a cell array ? Please define:
A = magic(5); %all columns have 5 elements
osminbas
on 1 Mar 2012
osminbas
on 1 Mar 2012
Accepted Answer
More Answers (0)
Categories
Find more on Multidimensional Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!