slblocksearchdb.untrainmodelsindir

Remove the effects of models from the suggestion engine

Syntax

slblocksearchdb.untrainmodelsindir(folder)
slblocksearchdb.untrainmodelsindir(folder,'exclude',exclusions)

Description

example

slblocksearchdb.untrainmodelsindir(folder) removes models in folder from the suggestion engine, recursively.

slblocksearchdb.untrainmodelsindir(folder,'exclude',exclusions) excludes the specified models from updating the suggestion engine.

Examples

collapse all

Create the cell array exPath for a folder and a model whose effects you do not want to remove from the suggestion engine. Then use the cell array in the slblocksearchdb.untrainmodelsindir command.

exPath = {'MyModels/subfolder' 'MyModels/myvdp.slx'}
slblocksearchdb.untrainmodelsindir('MyModels','exclude',exPath)

The command removes the models in the folder 'MyModels' with the exclusions you specified.

Input Arguments

collapse all

Folder whose models to remove from the suggestion engine, specified as an absolute or relative path character vector or string scalar.

Example: 'H:/MyModels/trainingmodels' 'MyModels'

Folders or models to exclude from removing from the suggestion engine, specified as a cell array of character vectors or a string array. Specify the folders or models to exclude as a full or relative path. For models, include the .slx or .mdl extension.

Example: {'H:/MyModels/trainingmodels' 'MyModels/trainingmodels2' 'MyModels/myvdp.slx'}

Introduced in R2018a