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
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    SHWETA KHARA
 am 26 Feb. 2018
  
    
    
    
    
    Bearbeitet: Roger Stafford
      
      
 am 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 Kommentare
Akzeptierte Antwort
  Roger Stafford
      
      
 am 26 Feb. 2018
        Let M be your matrix.
M = M(M>=0);
3 Kommentare
  Roger Stafford
      
      
 am 26 Feb. 2018
				
      Bearbeitet: Roger Stafford
      
      
 am 26 Feb. 2018
  
			M = reshape(M(M>=0),1,[]);
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Numeric Types finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!