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 file
myLinkSet = slreq.load(get_param('fuelsys', 'Name'));

% Save the link set file
save(myLinkSet);

% Save the link set file by another name
save(myLinkSet, 'C:\MATLAB\Files\MyLinkSet1.slmx');

Introduced in R2018a