load variable from .mat file in simulink

2 ビュー (過去 30 日間)
Ho Jung Kim
Ho Jung Kim 2022 年 7 月 20 日
コメント済み: Ho Jung Kim 2022 年 7 月 22 日
I am trying to load variable (containers.Map) from .mat file to simulink. However, I am getting this error:
Found unsupported class for variable using function 'load'. Code generation does not support importing handle classes from MATLAB.
load('filename') works fine for Matlab script files, but not for simulink.
Is there a way to fix this?

採用された回答

Adarshini K
Adarshini K 2022 年 7 月 21 日
From my understanding of your question you are trying to load the variables from .mat file to Simulink, you can use the following workarounds .
'From file' block in the Simulink model, for further details you may refer to the following documentation Load data from MAT file into Simulink model
  1 件のコメント
Ho Jung Kim
Ho Jung Kim 2022 年 7 月 22 日
Thank you! I will try this method

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete-Event Simulation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by