Export requirement set to previous MATLAB version
tf = exportToVersion(rs,name,version)
saves a copy of the requirement set
tf = exportToVersion(
rs with the file name
name that is compatible with the MATLAB® version
version. The function returns
if the file exports. The function saves the file in the current folder. If the requirement set
has an associated link set,
exportToVersion also exports the link set and
saves it in the current folder.
You can export requirement sets only to version R2017b or later.
name — File name for exported requirement set
string scalar | character vector
File name for the exported requirement set, specified as a string scalar or character vector.
tf — Export success status
Export success status, returned as a logical
1 (true) or
Export a Requirement Set to a Previous Version of MATLAB
This example shows how to export a requirement set to a file that is compatible with a previous version of MATLAB.
Open the Requirements Definition for a Cruise Control Model project and load the
crs_req requirement set.
slreqCCProjectStart; rs = slreq.load("crs_req");
Export the requirement set to a new file that is compatible with MATLAB R2020a. Name the new file
exportToVersion function also exports the link set associated with the requirement set using the same file name.
tf = exportToVersion(rs,"crs_req_2020a","R2020a")
tf = logical 1
Clear the open requirement sets and link sets. Close the current project.
You can export a link set to a previous version with