Effacer les filtres
Effacer les filtres

converting simulink block to a .m file

1 vue (au cours des 30 derniers jours)
saloni singhal
saloni singhal le 1 Fév 2013
Sir, I wrote a code to simulate the full bridge rectifier with LCR filter and also simulated it on simulink. With same setting fixed step and euler ode, simulink works but .m file code is not working.
So, could anyone help me if there is any command to convert simulink into .m file.. and is there any internal setting been done in program that why i am not getting the same result as simulink block
  2 commentaires
Azzi Abdelmalek
Azzi Abdelmalek le 1 Fév 2013
You have not posted any of your two files (m or mdl).
Kaustubha Govind
Kaustubha Govind le 1 Fév 2013
Modifié(e) : Kaustubha Govind le 1 Fév 2013
Could you elaborate on ".m file code is not working" - are you seeing any errors, if so, please post it. You can't convert a Simulink model to a MATLAB file, but you can call it from MATLAB using the SIM command.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by