Hi!!! I have a N-dimensional matrix. I want to convert into vector by discarding the decimal values less the 0. Please provide matlab code for this. Thank you
1 view (last 30 days)
Show older comments
SHWETA KHARA
on 26 Feb 2018
Edited: Roger Stafford
on 26 Feb 2018
Hi!!! I have a N-dimensional matrix. I want to convert into vector by discarding the decimal values less the 0. Please provide matlab code for this. Thank you
0 Comments
Accepted Answer
Roger Stafford
on 26 Feb 2018
Let M be your matrix.
M = M(M>=0);
3 Comments
More Answers (0)
See Also
Categories
Find more on Numeric Types 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!