how to convert block diagram (simulink )to m-file code ?

조회 수: 10 (최근 30일)
ruzaimah
ruzaimah 2011년 3월 3일
may i know how to convert the simulink blok diagram into m-file ? how can i get the code for each block?
the m-file coded will run on DSP kit tms320c6713 so the waterfall graph (pe vs ber) will come out.
here is the block diagram i need to convert..

채택된 답변

Paulo Silva
Paulo Silva 2011년 3월 3일
There's no way to convert it directly. You do your project on simulink or on matlab's m code, you can also do in both at the same time but simulink parts can't be converted unless you make equivalent functions in your m code.

추가 답변 (1개)

Kaustubha Govind
Kaustubha Govind 2011년 3월 3일
If you plan to run the model on an microprocessor, you probably need to convert it to C/C++ code and not MATLAB code. To generate C/C++ code from a Simulink model, you need Real-Time Workshop.

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by