How to save multiple data with different sample time under the same smallest sample time and export it to the excel in the same sheet?

1 次查看(过去 30 天)
Hi,
How can I save different data with different sample time with reference to the smallest sample time and export it to the excel in the same sheet? This way I could plot the data with reference to each other or with reference to the same sample time.
For example, I have two timeseries dataset called 'One' and 'two' as attached. The sample time of 'One' is 0.1 and 'two' is 0.2. So they have different samples under the same simulation time.Since they have different sample and thus different rows, I cannot use the following code to export them to the excel.
T = table(One.time,One.Data,Two.Data);
writetable(T,'Test.xls');
Could you kindly suggest the workaround? Thank you!

回答(0 个)

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by