フィルターのクリア

Creating a table that includes timetables

5 ビュー (過去 30 日間)
Marcel Zehner
Marcel Zehner 2020 年 3 月 28 日
コメント済み: Rajeev Kumar 2022 年 2 月 15 日
Hello everyone,
I am working with a Raspberry Pi and Matlab and want to store sensordata in a timetable. I want to store a timetable every day in an extra table. The picture shows how I want to do it. How can I do this in MatLab?
Thank you.

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 3 月 28 日
Following code show how to create a table of timetables
% creating timetables with random data
dates = (datetime('00:00:00'):duration(0,10,0):datetime('23:59:59'))';
sample_tt1 = timetable(dates, rand(size(dates)), rand(size(dates)));
sample_tt2 = timetable(dates, rand(size(dates)), rand(size(dates)));
sample_tt3 = timetable(dates, rand(size(dates)), rand(size(dates)));
sample_tt4 = timetable(dates, rand(size(dates)), rand(size(dates)));
% add elements to table
t = table();
t.flow(1) = {sample_tt1};
t.flow(2) = {sample_tt2};
t.pressure(1) = {sample_tt3};
t.pressure(2) = {sample_tt4};
  1 件のコメント
Rajeev Kumar
Rajeev Kumar 2022 年 2 月 15 日
Found very helpful for me. Thanks

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by