extracting timetable variables as array

47 visualizaciones (últimos 30 días)
Sehoon Chang
Sehoon Chang el 2 de Sept. de 2020
Comentada: Sehoon Chang el 3 de Sept. de 2020
Hi
i have a timetable imported from excel with undefined number or variables (number of usable variables change depending on situation).
Is there a possibility to extract all the variables with names that are written on top row of timetable as array into MATLAB?
e.g.: tempC = [11, 11, 11, 11, ....]
windspeed = [7.00, 7.00, 7.00, ...]
thanks for your help!
  3 comentarios
Sehoon Chang
Sehoon Chang el 3 de Sept. de 2020
thank you both for your comment! :)

Iniciar sesión para comentar.

Respuesta aceptada

VBBV
VBBV el 3 de Sept. de 2020
tempC = timetable_csv{:}{2};
windspeed = timetable_csv{:}{3};
timestamp = timetable_csv{:}{1};
  1 comentario
madhan ravi
madhan ravi el 3 de Sept. de 2020
Please format your code by pressing the code button.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Preprocessing Data 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!

Translated by