フィルターのクリア

How to load data from a .mat file in a Simulink block for the generation of a C code?

7 ビュー (過去 30 日間)
Harsh Singh
Harsh Singh 2019 年 2 月 14 日
回答済み: Naman Bhaia 2019 年 2 月 27 日
  • 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.

回答 (1 件)

Naman Bhaia
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.
You can also refer to this page for further doubts on how to load the data using From File.

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by