You can create a report with only selected code metrics by creating a custom review scope and generating a report with the scope. Follow these steps to generate a report with only selected code metrics:
Part 1: Create a Review Scope
1) In Polyspace Bug Finder, click Tools on the toolbar and then Preferences.
2) In the Polyspace Preferences window that appears, click Review Scope.
3) Click the New button to create a new scope.
4) Click Code Metrics in the menu on the left. Use this menu to select the code metrics you want included in your report.
Part 2: Generate a Report using the Review Scope
1) Return to the project. In the Results List pane, select the review scope you just created.
2) In Polyspace Bug Finder, click on Reporting in the toolbar and then click Run Report.
3) In the Run Report window, make sure that the Only include currently displayed results box is checked. Then, click Run to generate the report.
You can also generate a report from the Windows Command line with the command
>> polyspace-report-generator -template templateName -results-dir resultsFolder -format HTML -wysiwyg scopeName
where "templateName" is the template's path, "resultsFolder" is the results folder's path, and "scopeName" is the name of the scope you created in part 1. For more information about calling "polyspace-report-generator" with this syntax, see "Report Polyspace Results in Multiple Reports":
https://www.mathworks.com/help/bugfinder/ug/out-of-memory-errors-during-report-generation.html#mw_d239c177-e528-4177-aa88-b673a71e08cd