How can I round numbers from a column?
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Cristian Martin
 el 14 de Jun. de 2020
  
    
    
    
    
    Comentada: Cristian Martin
 el 14 de Jun. de 2020
            Hi,
I have:
load('work.mat');
C = T(:,2);%read second column
C{:, 1} = regexprep(C{:, 1}, '[(ms)]', '');%eliminate text after numbers
X = round(C) 
How do I round the numbers after I delete the text ?
____________________________________________________
Undefined function 'round' for input arguments of type 'table'.
Error in Runscript (line 8)
X = round(C)
0 comentarios
Respuesta aceptada
  madhan ravi
      
      
 el 14 de Jun. de 2020
        
      Editada: madhan ravi
      
      
 el 14 de Jun. de 2020
  
      round(C{:,1})
10 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Data Type Conversion en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


