Skip to content
Snippets Groups Projects
Commit 0ce334be authored by Federico Felici's avatar Federico Felici
Browse files

load simulink algo before accessing its workspace

parent 5b9bb481
No related branches found
No related tags found
No related merge requests found
......@@ -622,6 +622,7 @@ classdef SCDclass_algo
refmodels = find_mdlrefs(modelname);
for model = refmodels
mymodel = model{:};
load_system(mymodel);
if isequal(mymodel,modelname) % only init if model itself
hws = get_param(mymodel,'modelworkspace');
if isequal(hws.DataSource,'MATLAB File')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment