vssGetEvaluatedModelResourcePath

Get the model's current directory for external files (.mat and .oml) which are loaded by the model.

Syntax

vssGetEvaluatedModelResourcePath

vssGetEvaluatedModelResourcePath()

current_dir = vssGetEvaluatedModelResourcePath

current_dir = vssGetEvaluatedModelResourcePath()

Outputs

current_dir
Model’s current directory.
Type: char
Dimension: string

Example

Get the current directory of a model being currently evaluated

current_dir = vssGetEvaluatedModelResourcePath
current_dir = C:/Users/