I think the correct example solution is {'Y1', 'Y12', 'Y3'}.
Good exercise. Two comments: 1) test case 3 has unbalanced parentheses. 2) Instruction should say that your are expecting results to be returned in sorted order, rather than the order in which they appear in the expression.
How to find the position of an element in a vector without using the find function
2482 Solvers
Sum all integers from 1 to 2^n
8670 Solvers
Back to basics 9 - Indexed References
396 Solvers
Check if number exists in vector
4721 Solvers
2480 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!