MATLAB Answers

0

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

Asked by SHWETA KHARA on 26 Feb 2018
Latest activity Edited by 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

Sign in to comment.

Tags

1 Answer

Answer by Roger Stafford on 26 Feb 2018
 Accepted Answer

Let M be your matrix.
M = M(M>=0);