Can you generate a .m file from simulink plant model?

1 view (last 30 days)
I would like to know if you could build contol logic and a plant model then be able to generate .m file program so that you can reproduce the same by just running the .m file script.
The second question I have is how you can look at the DBC file (matrix file) and be able to design the signals. By looking at the frame message in the dbc file .
the third question i have is when you control a system what toolboxes do you usually use?

Answers (1)

Walter Roberson
Walter Roberson on 11 Sep 2016
I suspect your second question might be covered by http://www.mathworks.com/help/vnt/ug/loading-and-creating-messages-using-the-dbc-file_br1l_1y-1.html . This appears to have to do with Vehicle Networking.
For your first question: it depends which plant model toolboxes you are using. If you use Model Predictive Control toolbox then you can generate MATLAB code for it from http://www.mathworks.com/help/mpc/ug/generate-matlab-code-from-mpc-designer.html

Tags

Community Treasure Hunt

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

Start Hunting!