How to load data from a .mat file in a Simulink block for the generation of a C code?
조회 수: 7 (최근 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!