Main Content
addComment
Class: slreq.Reference
Namespace: slreq
Add comments to referenced requirements
Syntax
newComment = addComment(ref,myComment)
Description
adds a comment, newComment
= addComment(ref
,myComment
)myComment
, to the referenced requirement
ref
.
Input Arguments
Output Arguments
Examples
Tips
To add comments to requirements, use the
addComment
method ofslreq.Requirement
. To add comments to justifications, use theaddComment
method ofslreq.Justification
. To add comments to links, use theaddComment
method ofslreq.Link
.
Alternative Functionality
App
You can also add a comment by using the Requirements Editor. Select a referenced requirement and, in the right pane, under Comments, click Add Comment.
Version History
Introduced in R2018b