Logging data to mat files with Simulink Coder

1 次查看(过去 30 天)
Hi everyone!
My problem is the following; I have my controller in Simulink and a numerical model in vc++. So I generate a vc++ project and build the two together. This works fine. However, I would like to log data from the controller input and outputs to mat files. Is this possible?
I would really appreciate any tips :-)

采纳的回答

Kaustubha Govind
Kaustubha Govind 2014-3-25
You can write custom C-code to write to a MAT-file and integrate it into your VC++ application.
  1 个评论
Lio
Lio 2014-4-24
编辑:Lio 2014-4-24
How do i write a c-code that saves structures (and nested structures) to MAT file? I know that it possible for arrays, but I don't know how to do it for structures.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 General Applications 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by