MATLAB Answers

How to export variables from Simulink to Workspace while running a simulation?

17 ビュー (過去 30 日間)
Richard Lemke
Richard Lemke 2018 年 11 月 26 日
Answered: Arunkumar M 2018 年 12 月 2 日
Problem: I need 'live'-values of certain variables from a simulink model while running. The variables shall be used for the simulation which is controlled by a script.
I already tried to use the block 'to-Workspace' but with no success so far. The values just will be updated by the end of the simulation

  0 件のコメント

サインイン to comment.

件の回答 (1)

Arunkumar M
Arunkumar M 2018 年 12 月 2 日
You can use interpreted MATLAB function to get the output of your simulation and store it to base workspace using assignin command

  0 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。




Translated by