Get position of paired brackets in a string
POS2 = GETBRACKETPAIRpos1(STR,POS1) gets the bracket pos1ition in a
string given the position of the other paired bracket.
Input:
STR : string (can be a nested string)
POS1: pos1ition of a bracket (can be either left or right)
Note:
1. Any bracket of '{[(<>)]}' can be recognized.
2. Input position can be either left or right bracket.
3. Mixed pair types are sup
Zitieren als
Newport Quantitative (2024). Get position of paired brackets in a string (https://www.mathworks.com/matlabcentral/fileexchange/70060-get-position-of-paired-brackets-in-a-string), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0 |