Use Matlabfunction in simulink function block

2 vues (au cours des 30 derniers jours)
Zhikai Zhang
Zhikai Zhang le 26 Mai 2020
Modifié(e) : Zhikai Zhang le 31 Mai 2020
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

Réponses (1)

Srivardhan Gadila
Srivardhan Gadila le 30 Mai 2020
  1 commentaire
Zhikai Zhang
Zhikai Zhang le 31 Mai 2020
Modifié(e) : Zhikai Zhang le 31 Mai 2020
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?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by