Effacer les filtres
Effacer les filtres

link between matlab and simulink

1 vue (au cours des 30 derniers jours)
zahraoui younes
zahraoui younes le 17 Fév 2022
i have a code but one equation it is in sumilink form.
How can i call this equation from simulink?
Thank you
  1 commentaire
Ganesh Gudipati
Ganesh Gudipati le 14 Avr 2022
Hi,
As per my understnading you have an equation and you want to simulate it in simulink, right?

Connectez-vous pour commenter.

Réponses (2)

Walter Roberson
Walter Roberson le 14 Avr 2022
You can use sim() to execute a Simulink model from MATLAB. It would be common to use set_param first to configure the settings of the model.
  1 commentaire
zahraoui younes
zahraoui younes le 18 Mai 2022
thank you Walter

Connectez-vous pour commenter.


Animesh Gupta
Animesh Gupta le 1 Sep 2022
Modifié(e) : Animesh Gupta le 1 Sep 2022
Hello,
It is my understanding that you want to include MATLAB code in Simulink.
There are a number of ways to do that.
One possible way is to use MATLAB function block. You can either define a new function or call the function already in the path to execute.
For detailed answer for all the possible ways, please refer to this link - https://www.mathworks.com/matlabcentral/answers/297092-how-do-i-incorporate-matlab-code-into-simulink
Please note that the documentation link can be updated for specific release by replacing "R2021a" with the required release name.
I hope it helps.

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