To Workspace block not returning results when simulating using SimulationInput objects

11 ビュー (過去 30 日間)
Why are To Workspace blocks not creating variables with the assigned names in the Base Workspace when I run my model using a 'SimulationInput' object?

採用された回答

MathWorks Support Team
MathWorks Support Team 2019 年 1 月 22 日
When running a model using
out = sim(in)
where 'in' is a 'SimulationInput' object, a To Workspace block does not give the assigned variable name, e.g. 'simout', in the Base Workspace. Instead, the To Workspace block variable 'simout' is given as part of the 'SimulationOutput' object generated by 'sim', i.e. in this case 'out.simout'.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by