load variable from .mat file in simulink
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ho Jung Kim
el 20 de Jul. de 2022
Comentada: Ho Jung Kim
el 22 de Jul. de 2022
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 comentarios
Respuesta aceptada
Adarshini K
el 21 de Jul. de 2022
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
Más respuestas (0)
Ver también
Categorías
Más información sobre Discrete-Event Simulation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!