How to load matrix variables as constant on Simulink?
45 views (last 30 days)
Show older comments
관웅 윤 on 26 Aug 2021
Commented: 관웅 윤 on 31 Aug 2021
I am trying to load matrix variables on simulink as constant value from '.mat' file. Is it possible to load MATLAB variables on Simulink and use it as constant block value? All variables are N-d array. I found that there are several ways to load a variable on Simulink such as "From File Block" or "Input Port", but It did not work for my project.
Jonas on 26 Aug 2021
Load the .mat file into the Base Workspace of MATLAB, and in Simulink use the From Workspace block to enter the variable name there.
More Answers (0)
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!