Simout output from sim command called from Matlab Function Block in Simulink

조회 수: 1 (최근 30일)
Ahmed
Ahmed 2014년 5월 20일
편집: Ahmed 2014년 5월 20일
I'm trying to simulate a model "inner.mdl" (several timesteps) in one timestep of the root model "outer.mdl". I thought of calling simout = sim("inner.mdl") from a Matlab Function Block. The problem is: Since I'm using extrinsic sim (bypassing code generation), simout is returned as an MxArray and I am unable to retrieve the logged signals from it. Any ideas would be appreciated, whether they are about doing this simulation-in-simulation or with obtaining the logged signals using the method I'm trying.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by