Package: frest
List of model path dependencies
dirs
= frest.findDepend(model
)
returns paths containing Simulink® model dependencies required
for frequency response estimation using parallel computing. dirs
= frest.findDepend(model
)model
is
the Simulink model to estimate, specified as a character vector
or a string. dirs
is a cell array, where
each element is a path character vector. dirs
is
empty when frest.findDepend
does not detect any
model dependencies. Append paths to
when
the list of paths is empty or incomplete.dirs
frest.findDepend
does not return a complete
list of model dependency paths when the dependencies are undetectable.
Specify model path dependencies for parallel computing:
% Copy referenced model to temporary folder. pathToLib = scdpathdep_setup; % Add folder to search path. addpath(pathToLib); % Open Simulink model. mdl = 'scdpathdep'; open_system(mdl); % Get model dependency paths. dirs = frest.findDepend(mdl) % The resulting path is on a local drive, C:/. % Replace C:/ with valid network path accessible to remote workers. dirs = regexprep(dirs,'C:/','\\\\hostname\\C$\\') % Enable parallel computing and specify the model path dependencies. options = frestimateOptions('UseParallel','on','ParallelPathDependencies',dirs)