isnan input arguments of type 'cell'
    20 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Rahul
 el 28 de Jun. de 2012
  
    
    
    
    
    Comentada: Kavya Ashok
 el 14 de Sept. de 2016
            I am getting a cell error
a={'2' [NaN] '4' '5'}
isnan(a)
Undefined function 'isnan' for input arguments of type 'cell'.
How can I get around this error
0 comentarios
Respuesta aceptada
  the cyclist
      
      
 el 28 de Jun. de 2012
        cellfun(@isnan,a)
2 comentarios
  Kavya Ashok
 el 14 de Sept. de 2016
				This returns the index of a where nan exists. What if you want Nan to be removed from the original array?
Más respuestas (1)
  Debejyo Chakraborty
      
 el 20 de Jul. de 2016
        Sometimes this may be necessary: b = cellfun(@isnan,a,'UniformOutput',false);
0 comentarios
Ver también
Categorías
				Más información sobre Numeric Types en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



