Use Matlabfunction in simulink function block

조회 수: 1 (최근 30일)
Zhikai Zhang
Zhikai Zhang 2020년 5월 26일
편집: Zhikai Zhang 2020년 5월 31일
Hi I am trying to use a matlabfunction I generated in a simulink function block, but it doesn't recognize it since it doesn't share the veribles from the matlab workspace, is there a way I can do that? Thanks

답변 (1개)

Srivardhan Gadila
Srivardhan Gadila 2020년 5월 30일
  댓글 수: 1
Zhikai Zhang
Zhikai Zhang 2020년 5월 31일
편집: Zhikai Zhang 2020년 5월 31일
Thanks for the reply, I can't use parameter arguments since it doesn't support the format of a matlabfunction, or data storing, right now I found a workaround by using extrinsic function in simulink function block which is in the directory and it can use varibles in the workspace, but the simulation becomes extremely slow, I am not sure whether it is the problem using a matlabfunction or the fact I am using an extrinsic function?

댓글을 달려면 로그인하십시오.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by