MATLAB Answers


Accessing timetable data using user defined column

Timon Rayis さんによって質問されました 2019 年 10 月 21 日
最新アクティビティ Timon Rayis さんによって コメントされました 2019 年 11 月 4 日
Hello everyone. I just have a small doubt regarding accessing of timetable data.
For example, I have a timetable T as below
I am trying to access the value data as
which gives me 15.
but I dont want to index it as T.value(1) or T.value(2) or T.value(3) to access the value data. Instead I want to use time_lin column.
like T.time_lin(0.4) which has to give the value data corresponding to it i.e 15.
I guess it would be possible. I have tried using many commands and ended up with errors.
I hope I could get some help. Thanks beforehand.

  0 件のコメント

サインイン to comment.

1 件の回答

回答者: Jon
2019 年 10 月 21 日

You can do something like this
v = T.value(T.time_lin==0.4)

  1 件のコメント

Timon Rayis 2019 年 11 月 4 日
Thanks Jon.

サインイン to comment.

Translated by