converting simulink block to a .m file

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개)

카테고리

도움말 센터File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품

태그

질문:

2013년 2월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by