converting simulink block to a .m file

1 次查看(过去 30 天)
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 个评论
Azzi Abdelmalek
Azzi Abdelmalek 2013-2-1
You have not posted any of your two files (m or mdl).
Kaustubha Govind
Kaustubha Govind 2013-2-1
编辑:Kaustubha Govind 2013-2-1
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by