필터 지우기
필터 지우기

Accessing timetable data using user defined column

조회 수: 1 (최근 30일)
Timon Rayis
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
T.value(2)
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.

채택된 답변

Jon
Jon 2019년 10월 21일
You can do something like this
v = T.value(T.time_lin==0.4)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by