Create and Save Printable Reports of Comparison Results
You can analyze the comparison results of requirement or link set files by creating the comparison report from the Comparison tool or from the MATLAB® command line.
Create Report from Comparison Tool
To save a printable version of the comparison report for requirement or link set files from the tool:
On the Comparison tab, click Publish and select one of these formats: Publish to HTML, Publish to Word, or Publish to PDF.
The Save dialog box opens, where you can save a printable version of the comparison report for requirement or link set files.
By default, the file name for the file types is specified as
file1_file2and location is current folder. You can change the file name and location.
By default, the report shows only the changed requirements or links. To include all requirements in the report, clear the Show Only Changed option on the Filters tab in the toolstrip.
Create Report from Command Line
To create the comparison report from the command line, use the visdiff function. You can manipulate the comparison report at the
command line by specifying an output argument.
Compare two requirement sets called
crs_req_func_spec_01.slreqxandcrs_req_func_spec_02.slreqxand return a comparison object.comparison = visdiff('crs_req_func_spec_01.slreqx','crs_req_func_spec_02.slreqx');
Use the
publishfunction to create the report. By default, the function creates the report in the HTML format and names itfile1_file2.html.file = publish(comparison); web(file)
To save the report in a different format and by a different name, use the
format and Name arguments. For example, to
save the report as a PDF file named myreport, use this
syntax:
file = publish(comparison,"format","PDF","Name","myreport"); web(file)
options structure:
publish(comparison,options). For more information on the available
name-value pairs for the publish function, see visdiff.