Use Matlabfunction in simulink function block

1 次查看(过去 30 天)
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