how to delete rows of the character '' from a column or column vector
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    AbelM Kusemererwa
 am 22 Jun. 2015
  
    
    
    
    
    Kommentiert: AbelM Kusemererwa
 am 22 Jun. 2015
            how to delete rows of the character '' from a column or column vector
e.g column_vector={'2';'3';'';'54';'';'';'';'4';'19'} to become column_vector={'2';'3';'54';'4';'19'}
4 Kommentare
  Guillaume
      
      
 am 22 Jun. 2015
				
      Bearbeitet: Guillaume
      
      
 am 22 Jun. 2015
  
			if the column_vector is a cell array as in the example provided, then the '' character is not a character at all, but an empty string which is detected by isempty. See Azzi's answer.
if the column_vector is a truly a column vector, it is a char array. Then the '' character may very well be a character which can be removed according to James' answer.
Using proper terminology helps in getting the right answer.
Akzeptierte Antwort
  Azzi Abdelmalek
      
      
 am 22 Jun. 2015
        s={'' ;12;'';'5 '; '6';' abc';'rt';;''}
s(cellfun(@isempty,s))=[]
3 Kommentare
  Azzi Abdelmalek
      
      
 am 22 Jun. 2015
				
      Bearbeitet: Azzi Abdelmalek
      
      
 am 22 Jun. 2015
  
			It's Azzi, not Aziz. post a sample of this column
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Bartlett finden Sie in Help Center und File Exchange
			
	Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!