Main Content


Generate report for requirements set


myReportPath = slreq.generateReport(reqSetList, reportOpts) generates a report for the requirements sets specified by reqSetList using the options specified by reportOpts and returns the path myReportPath to the report.


Generate Requirement Report

% Generate a requirement report in Microsoft(R) Word
% format for all loaded requirements sets

% Get default report generation options structure
myReportOpts = slreq.getReportOptions(); 

% Specify the generated report path and file name
myReportOpts.reportPath = 'L:\My_Project\Reqs_Report.docx';
% Generate the report for all loaded requirements sets
myReport = slreq.generateReport('all', myReportOpts);


To generate reports in PDF and HTML formats, specify a .pdf or a .html file name as the reportPath value.

Input Arguments

collapse all

Requirements sets for report generation. You can specify a single requirements set or an array of requirements sets. To generate a report for all the loaded requirements sets, specify 'all' as the reqSetList value. If you do not specify a value for reqSetList, 'all' is used as default.

Report generation options specified as a MATLAB® structure. If reportOpts is not specified, the report is generated using the default options specified in slreq.getReportOptions.


FieldsData TypeDescription
reportPathcharacter vectorGenerated report path.
titleTextcharacter vectorReport title.
authorscharacter vectorReport authors.
includes.tocBooleanOption to include table of contents in your report.
includes.linksBooleanOption to include requirements links in your report.
includes.rationaleBooleanOption to include requirements rationale in your report.
includes.customAttributesBooleanOption to include requirements set custom attributes in your report
includes.commentsBooleanOption to include requirement comments in your report.
includes.implementationStatusBooleanOption to include requirement implementation status data in your report.
includes.verificationStatusBooleanOption to include requirement verification status data in your report.
includes.keywordsBooleanOption to include requirement implementation status data in your report.
includes.emptySectionsBooleanOption to include empty sections in your report.
includes.revisionBooleanOption to include requirement revision information in your report.

Output Arguments

collapse all

The file path for the generated report, specified as a character vector.

Introduced in R2018a