assign content into an empty timetable based on timerange variable

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

回答 (1 件)

Peter Perkins
Peter Perkins 2018 年 3 月 15 日

0 投票

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.

カテゴリ

製品

質問済み:

2018 年 3 月 14 日

回答済み:

2018 年 3 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by