simulink using function workspace

조회 수: 7 (최근 30일)
Li Wang
Li Wang 2019년 4월 1일
I'm using sim() in a matlab function to call a simulink model that include s-function. (Matlab R2017b)
Inorder to use the function workspace in the simulink modle I used:
myoptions = simset('SrcWorkspace','current',...
'DstWorkspace','current',...
'ReturnWorkspaceOutputs', 'on');
simOut = sim(mdlName, endTime, myoptions);
But the simulink model keep having issue with using the function workspace and asking for base workspace to fix the issue.
Could you please help fix the issue?

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by