Skip to content
Snippets Groups Projects
Commit 34e8aef9 authored by Francesco Pastore's avatar Francesco Pastore Committed by Federico Felici
Browse files

Avoided using .evalin('who') method to access to data dictionary names

parent 2f71deec
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ function export_sldd_to_base(dict_name)
hDict = Simulink.data.dictionary.open([dict_name,'.sldd']);
hDesignData = hDict.getSection('Global');
childNamesList = hDesignData.evalin('who');
childNamesList = {hDesignData.find.Name};
for n = 1:numel(childNamesList)
hEntry = hDesignData.getEntry(childNamesList{n});
assignin('base', hEntry.Name, hEntry.getValue);
......
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