Can I Generate C/C++ code in MATLAB and Simulink without purchasing MATLAB Coder or Simulink Coder Toolboxes?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Dear Community,
I have designed PI and MPC controllers in MATLAB and Simulink, I want to implement them real time, i.e. I want to generate C/C++ code and then implement it to the real hardware through MATLAB Real Time, S-Function, or Rasberry PI.
I read and followed a lot of tutorials but unfortunately I think i have to purchase MATLAB Coder and Simulink Coder Toolboxes for generating C/C++ code. I am student and it is very hard for me to purchase these toolboxes.
I am seeking help in this regard, if I can develop the code without purchasing toolbox please guide me, and if it is not possible without toolboxes then I request to those who have toolboxes please generate C/C++ code for me.
I am attaching the zip folder which contains all the necessary files.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1578306/image.jpeg)
First run PZTModel1.m file then load PID_Controller22_December, and DisRejection_27December files and open MPC_simulink1. Please generate the code PI and MPC seperately. Thanks
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1578311/image.jpeg)
0 Kommentare
Antworten (1)
Angelo Yeo
am 29 Dez. 2023
Verschoben: Angelo Yeo
am 29 Dez. 2023
This approach is not suitable for using MATLAB Answers. I recommend contacting the Sales Representative for your account to inquire about obtaining a trial license. If granted permission, you can utilize the licenses for a month. Additionally, student (or academic) versions are available at a more affordable price. Please discuss with your managers regarding the purchase of licenses.
1 Kommentar
Siehe auch
Kategorien
Mehr zu Simulink Coder finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!