Main Content
slreq.TextRange
Description
Use slreq.TextRange
objects to describe lines of code in a
MATLAB® code or plain-text external code file.
Creation
There are several ways to create an slreq.TextRange
object:
Create a link to MATLAB or plain-text external code by using the Requirements Editor. See Link MATLAB Code to Requirements.
Properties
Object Functions
deleteLinks | Delete links for line ranges |
getLineRange | Get line numbers for line range |
getLinks | Get links for line range |
getText | Get contents of line range |
remove | Delete unused line ranges |
setLineRange | Set line numbers for line range |
show | Open and highlight line range in MATLAB Editor |
Examples
Version History
Introduced in R2022b