How to create a time series from C++ using the MEX files?
Show older comments
So I am trying to write a MAT-file from a CPP standalone application because it seems the easiest to method to execute a standalone Simulink model, which then will output to another MAT-file to then be read back into the C++ standalone application. I managed to create my struct and all it's variables which are written to a MAT-file, but I have to make them be a time-series for the Simulink model to execute.
I can't find anywheres describing how to create a time-series double (for example) from C++ code, so any help is appreciated. If anyone knows if there is also a better method for executing a Simulink model from a C++ application rather than a from-file input, feel free to weigh in as well.
Accepted Answer
More Answers (0)
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!