balance1(x)

Version 1.0.0.0 (355 Bytes) by uu tsi
if the parenthesis is right
25 Downloads
Updated Sun, 09 Oct 2016 06:12:50 +0000

View License

>> balance1('()')
ans =

1

>>
>> balance1('()((')

ans =

0

>> balance1('()(())')

ans =

1

Cite As

uu tsi (2024). balance1(x) (https://www.mathworks.com/matlabcentral/fileexchange/59613-balance1-x), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0