assign content into an empty timetable based on timerange variable

5 visualizaciones (últimos 30 días)
Andy
Andy el 14 de Mzo. de 2018
Respondida: Peter Perkins el 15 de Mzo. de 2018
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

Respuestas (1)

Peter Perkins
Peter Perkins el 15 de Mzo. de 2018
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.

Categorías

Más información sobre Timetables en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by