Simulink BLock into Matlab M-file

Hi, Can anyone tell me how can we use a simulink block into matlab M-file. I am actually trying to write a program (M-File) to generate a C-file for TMS320C6713 dsk kit. Instead of using simulink blocks in building a simulation model for the dsk, can I write a program by calling these blocks in my m-file.
thank you

댓글 수: 1

James Haynes
James Haynes 2012년 4월 19일
You can see the following link:
http://www.mathworks.com/support/tech-notes/1900/1903.html

댓글을 달려면 로그인하십시오.

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 4월 9일

1 개 추천

It is not possible to call Simulink blocks from a MATLAB-file, but you can call a MATLAB-function from a Simulink model using the MATLAB Function Block. Since you want to generate code from your MATLAB function, you will need to ensure that you only use MATLAB language features and functions that are supported for code generation. If you have an Embedded Coder license, generating code from a Simulink model for TI targets is easy.

카테고리

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

질문:

2012년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by