Use Requirements to Develop and Verify MATLAB Functions
This tutorial shows how to use Requirements Toolbox™ to use requirements to develop and verify a MATLAB® function. In this tutorial, you follow these steps to author requirements, link requirements to design and test artifacts, import requirements, track the implementation and verification progress, identify and address traceability gaps, and track changes:
Author Requirements for MATLAB Function: Author requirements that describe the required behavior of a MATLAB function.
Link Requirements to MATLAB Code: Trace requirements to the MATLAB code and tests by creating links that implement and verify the requirements.
Import Requirements from Test Specifications: Import requirements to Requirements Toolbox from a test specification created in Microsoft® Word.
Track Requirements Implementation Progress: Track the implementation progress of requirements by viewing the implementation status in the Requirements Editor.
Track Requirements Verification Progress: Track the verification progress of requirements by viewing the verification status in the Requirements Editor.
Identify and Address Traceability Gaps: Identify traceability gaps by using traceability matrices and diagrams and close the gaps by creating links.
Track Changes to Requirements: Use change tracking to identify changes to requirements and assess the impact of the changes.
This tutorial uses the
MyAdd project. To open the project, enter:
The project contains:
A MATLAB function, located in the
A Microsoft Word document that defines a test specification, located in the
A requirement set that contains requirements imported from Microsoft Word, located in the
MATLAB tests for the function, located in the
Links from the test requirements to the tests, located in the
A project startup MATLAB function, located in the