assign content into an empty timetable based on timerange variable
6 次查看(过去 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!