How can I round numbers from a column?

3 visualizzazioni (ultimi 30 giorni)
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)

Risposta accettata

madhan ravi
madhan ravi il 14 Giu 2020
Modificato: madhan ravi il 14 Giu 2020
round(C{:,1})
  10 Commenti
Cristian Martin
Cristian Martin il 14 Giu 2020
Thank You Ravi !

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Prodotti


Release

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by