finddepend - Find model path dependencies

Syntax

dirs=finddepend(proj)

Description

dirs=finddepend(proj) returns a cell array of directories that contain model dependencies. The directories or model path dependencies are required to optimize the model response using parallel computing.

finddepend returns an empty cell array in the following cases:

You must modify dirs to include additional path dependencies for your model:

Use the optimset command to add the model path dependencies to the response optimization project.

Example

Open the pidtune_demo model.

pidtune_demo

Extract the response optimization project from this model.

proj=getsro('pidtune_demo');

Enable the parallel computing option in the response optimization project.

optimset(proj,'UseParallel','always');

Find the model path dependencies.

dirs=finddepend(proj)

This command returns an empty cell array because the pidtune_demo model does not have any path dependencies.

To add model path dependencies, use the optimset command.

optimset(proj,'ParallelPathDependencies',dirs) 

See Also

Model Dependencies in the Simulink documentation, optimget, optimset

  


 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS