load variable from .mat file in simulink
2 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete-Event Simulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!