How to convert timeseries to array

49 ビュー (過去 30 日間)
Joris van Dort
Joris van Dort 2019 年 7 月 30 日
コメント済み: Joris van Dort 2019 年 8 月 7 日
I am working with SimEvents and want to store the Data of each entity in an array.
Working with "To Workspace" will give me the timesseries, but I want the data in an array.
Changing the setting in "To Workspace" does not work, because it 'Cannot propagate bus signal because this input port requires a non-bus signal.'
Is there an easy way of converting the Data of timeseries to an array?

回答 (1 件)

Sai Bhargav Avula
Sai Bhargav Avula 2019 年 8 月 2 日
Changing the setting “save format” in the To Workspace block to Array should work. Another work around would be to use the output block and log the data. You can also use the scope block to log the data.
  1 件のコメント
Joris van Dort
Joris van Dort 2019 年 8 月 7 日
Thank you for the answer! But I have some remarks:
In SimEvents it is not possible to output entitys by output block, or is it?
If I try to change the save format in the Workspace Block following error occurs:
I now change some things and get the information I want though a normal output port, but it would still be helpful to be able to convert timeseries to array or tables. Is this possible in general?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeResource Allocation Modeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by