assign content into an empty timetable based on timerange variable
조회 수: 9 (최근 30일)
이전 댓글 표시
Say you've got an empty timetable:
t = timetable();
t.Data = 0;
and you're given a timerange var: tr
and you need to grow / assign value 0 for full length of tr:
t(tr,tr.Data) = 1;
how can this be achieved? thanks
댓글 수: 0
답변 (1개)
Peter Perkins
2018년 3월 15일
A timerange subscripter does not specify times, it only specifies a range of times. Presumably you have in mind some specific set of times at which your data were measured, use that to assign into the timetable.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Timetables에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!