フィルターのクリア

extracting timetable variables as array

19 ビュー (過去 30 日間)
Sehoon Chang
Sehoon Chang 2020 年 9 月 2 日
コメント済み: Sehoon Chang 2020 年 9 月 3 日
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 件のコメント
Sehoon Chang
Sehoon Chang 2020 年 9 月 3 日
thank you both for your comment! :)

サインインしてコメントする。

採用された回答

VBBV
VBBV 2020 年 9 月 3 日
tempC = timetable_csv{:}{2};
windspeed = timetable_csv{:}{3};
timestamp = timetable_csv{:}{1};
  1 件のコメント
madhan ravi
madhan ravi 2020 年 9 月 3 日
Please format your code by pressing the code button.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePreprocessing Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by