Export Simulink data to Excel during simulation

9 ビュー (過去 30 日間)
Colm Traynor
Colm Traynor 2016 年 1 月 22 日
コメント済み: Colm Traynor 2016 年 1 月 22 日
I have a simulation built with Simulink, where I have worked out for example the water temperature in a heating system at every hour over the course of a year.
I am wondering is there a way to export my output data to an excel file as part of the simulation or will I have to export to the workspace first of all?

回答 (1 件)

Ilham Hardy
Ilham Hardy 2016 年 1 月 22 日
As far as I know, during the simulation the current simulation data (e.g. ToWorkspace) are sort of not accessible. if you want to export the output to Excel, then you can do it after the simulation finished (post processing).
  1 件のコメント
Colm Traynor
Colm Traynor 2016 年 1 月 22 日
Ok I see, I was trying to workout a way to use a MATLAB function to write to an excel file using xlswrite but from what you are saying it sounds like that is not possible? Am I better, therefore to use a ToFile block maybe and use that in post processing in Matlab to write my data to excel?

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

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by