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?
3 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Spreadsheets in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!