Main Content

save

Class: slreq.LinkSet
Package: slreq

Save link set

Syntax

save(lks)
save(lks, filePath)

Description

save(lks) saves the link set lks by using its file name.

save(lks, filePath) saves the link set lks and updates its Name and Filename properties.

Input Arguments

expand all

Link set file, specified as an slreq.LinkSet object.

The file name and path of the link set, specified as a character vector.

Example: 'C:\MATLAB\myLinkSet.slmx'

Examples

Save Link Set File

Load a link set associated with a Simulink® model called fuelsys. Save the link set.

myLinkSet = slreq.load('fuelsys.slx');
save(myLinkSet);
Save the link set to a new file.
save(myLinkSet,'C:\MATLAB\Files\MyLinkSet1.slmx');

Version History

Introduced in R2018a