Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

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

Asked by ruzaimah on 3 Mar 2011

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..

http://www.mediafire.com/?bw3vgn106115kd9

0 Comments

ruzaimah

Products

No products are associated with this question.

2 Answers

Answer by Paulo Silva on 3 Mar 2011
Accepted answer

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.

0 Comments

Paulo Silva
Answer by Kaustubha Govind on 3 Mar 2011

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.

0 Comments

Kaustubha Govind

Contact us