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.
Examine Project
This tutorial uses the MyAdd
project. To open the project, enter:
openProject("MyAdd");
The project contains:
A MATLAB function, located in the
source
folderA Microsoft Word document that defines a test specification, located in the
documents
folderA requirement set that contains requirements imported from Microsoft Word, located in the
documents
folderMATLAB tests for the function, located in the
tests
folderLinks from the test requirements to the tests, located in the
tests
folderA project startup MATLAB function, located in the
utilities
folder