Finding Matching Nested Parentheses in a String

If the location of a closed or opened parenthesis is known in a string, could you share a code that finds its matching parenthesis in forward or reverse direction of a general purpose equation that has many nested parentheses?

Answers (0)

Asked:

S H
on 6 Jun 2016

Edited:

on 6 Jun 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!