How to load data from a .mat file in a Simulink block for the generation of a C code?
6 次查看(过去 30 天)
显示 更早的评论
- I have a Stateflow block inside the Simulink model.
- This Stateflow block is using look-up tables for which the data is required from an already created .mat file.
- I am not sure of how to load this data in the model such that it does not throw an error while building a C code.
0 个评论
回答(1 个)
Naman Bhaia
2019-2-27
Hey Harsh,
To use a lookup table from a ‘.mat’ file, you can use the From File block to get your lookup table in a matrix form and then pass it onto the stateflow block.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!