I cannot find the code generation in my matlab?

I would like to generate C code of my PI controller but I cound not find it even i followed some tutorials, seems I don't have the same configurations

Answers (1)

You need Simulink coder: https://www.mathworks.com/products/simulink-coder.html to generate code for the Simulink model. To check if it is installed, run the following line in the command window
ver simulinkcoder
If you get a warning, it will mean that you don't have it installed.

6 Comments

SimTec
SimTec on 29 Sep 2020
Edited: SimTec on 29 Sep 2020
I have it but how can I install it:
MATLAB Version: 9.5.0.944444 (R2018b)
MATLAB License Number: 118069
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 17763)
Java Version: Java 1.8.0_152-b16 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mo
do you have an idea which one I must install in the;?
Hardware Support Packages
You can run the MATLAB installer for R2018b. When asked to select the packages, select Simulink coder.
I have MATLAB 2020 version, can you please explain in steps what should I do?
Your previous comment shows the MATLAB version is R2018b. Even in the case of R2020, login to the mathwork account. Select your license. Download the installer. And when installing, select the Simulink installer from the list of all toolboxes.
whenever I install it it ask me to ge t the licesne from my administarot in the company. seems it has its own licence, am I wrong?
Yes, MATLAB has different license types. You need to follow the instructions that will work for your case.

Sign in to comment.

Categories

Asked:

on 29 Sep 2020

Commented:

on 30 Sep 2020

Community Treasure Hunt

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

Start Hunting!