extracting timetable variables as array
19 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi
i have a timetable imported from excel with undefined number or variables (number of usable variables change depending on situation).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/355372/image.png)
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!
Réponse acceptée
VBBV
le 3 Sep 2020
tempC = timetable_csv{:}{2};
windspeed = timetable_csv{:}{3};
timestamp = timetable_csv{:}{1};
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Preprocessing Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!