You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
substr extracts a substring of length len from the string str, starting at the specified offset. In this version, the first character position has offset 1. (In Acklam's original code, the first character position has offset 0, but this is inconsistent with Matlab conventions). If offset is negative, the position is reckoned by counting backwards from the end of the string. If len is omitted, substr returns everything to the end of the string. If len is negative, substr removes -len characters from the end of the string.
Cite As
Phillip M. Feldman (2026). extract substring (https://nl.mathworks.com/matlabcentral/fileexchange/25064-extract-substring), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.69 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
