Info

此问题已关闭。 请重新打开它进行编辑或回答。

Need help compiling C++ code generated from Simulink

1 次查看(过去 30 天)
Let's start with what I have.
Here's a picture of the model I'm trying to convert into C++: https://i.imgur.com/X1mX0QQ.png
Here's the model I'm trying to convert into C++: https://drive.google.com/file/d/1I26FYjG3eXCn0pXSUOn22HOF6DwiTqLE/view?usp=sharing
Here's the code that was generated when I ran Simulink Coder: https://drive.google.com/file/d/1lOFtm8yo27b8bbiDs5viehANZPsXwTx7/view?usp=sharing
All I want to do is input any value I want into In1 and run the simulation to completion while outputtint Out1 and Out2 to a txt file. Unfortunately, I cannot compile the generated code successfully, nor do I really know how to use the code at all. I'm also having a hard time finding any examples in C++, so I can't really teach myself. Can I get some help please?

回答(0 个)

此问题已关闭。

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by