Skip to Main Content Skip to Search
Product Documentation

frest.findDepend - Package: frest

List of model path dependencies

Syntax

dirs = frest.findDepend(model)

Description

dirs = frest.findDepend(model) returns paths containing Simulink model dependencies required for frequency response estimation using parallel computing. model is the Simulink model to estimate. dirs is a cell array, where each element is a path string. dirs is empty when frest.findDepend does not detect any model dependencies. Append paths to dirs when the list of paths is empty or incomplete.

frest.findDepend does not return a complete list of model dependency paths when the dependencies are undetectable.

Examples

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)

See Also

frestimate

How To

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS