filepath

Class: Simulink.data.Dictionary
Package: Simulink.data

Full path and file name of data dictionary

Syntax

dictionaryFilePath = filepath(dictionaryObj)

Description

dictionaryFilePath = filepath(dictionaryObj) returns the full path and file name of the data dictionary dictionaryObj, a Simulink.data.Dictionary object.

Input Arguments

expand all

Target data dictionary, specified as a Simulink.data.Dictionary object. Before you use this function, represent the target dictionary with a Simulink.data.Dictionary object by using, for example, the Simulink.data.dictionary.create or Simulink.data.dictionary.open function.

Examples

expand all

Open the data dictionary myDictionary_ex_API.sldd and represent it with a Simulink.data.Dictionary object named myDictionaryObj.

myDictionaryObj = Simulink.data.dictionary.open('myDictionary_ex_API.sldd');

Return the full path of myDictionary_ex_API.sldd and assign it to variable myDictionaryFilePath.

myDictionaryFilePath = filepath(myDictionaryObj)
myDictionaryFilePath =

C:\Users\jsmith\myDictionary_ex_API.sldd
Introduced in R2015a