User`s guide
8 MATLAB Code Traceability
8-8
Associate Traceability Information with MATLAB Code Lines in
Simulink
Traceability management support in the MATLAB Editor is an extension of the
Simulink-based Requirements Management Interface to allow associations between
MATLAB code lines and external artifacts. This capability does not require editing
MATLAB files; all traceability data is stored separately. This is similar to "external"
storage of RMI links when working with Simulink models.
In addition, using "external storage" mode for managing traceability information,
Simulink and Stateflow users can benefit from finer granularity when associating
external documents with contents of MATLAB Function blocks.
The included example model has traceability data associated both with Simulink blocks
and individual code lines of MATLAB Function blocks.
Open Example Model
This example demonstrates linking between external documents and MATLAB code lines
when modeling stimulated spiking in connected neural cells.
Open the slvnvdemo_synaptic_transmission model. There are three Model blocks
referencing the same model of a spiking neural cell. The neural cell model follows a
"Leaky Integrators" equation:
For the purpose of simulation, we converted to: