Porting C++ to Simulink Code
1 view (last 30 days)
Show older comments
Hi Everybody,
I need to port a C++ program into Simulink. What do you guy's think is the best approach on accomplishing this task? I am kind of new to Simulink but not new to programming. I was also wondering what are some of the Simulink courses I should take. I probably will need an introductory course but what are some of the others that will help me with this porting?
Thank you for helping,
RG
2 Comments
Rik
on 6 Apr 2020
Backup of question:
Title:
Porting C++ to Simulink Code
Body:
Hi Everybody,
I need to port a C++ program into Simulink. What do you guy's think is the best approach on accomplishing this task? I am kind of new to Simulink but not new to programming. I was also wondering what are some of the Simulink courses I should take. I probably will need an introductory course but what are some of the others that will help me with this porting?
Thank you for helping,
RG
Rik
on 6 Apr 2020
In response to your flag: questions on this forum are generally not deleted, unless there are very good reasons to do so (copyright infringement, or discussions that are illegal (like discussions about non-trivial cryptography)). These are exceedingly rare. It is much more common that people want to use this forum as a free consultation service.
Why do you want to remove this question?
Accepted Answer
Sachin Kumar
on 19 Apr 2017
First thing you should know is, Simulink is not a usual coding language like C,C++,etc., it's a graphical programming environment. It uses programming blocks to create the models(programs) which you can simulate to get the outputs.
You can run C++ programs from Simulink using S-function builder for this you need to know basics of Simulink first. You can get training from Mathworks itself: https://www.mathworks.com/services/training.html
Also you can look into coursera courses on MATLAB. Another way of learning is to look at the examples from Mathworks documentation,run the examples and make changes according to requirements.
0 Comments
More Answers (0)
See Also
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!