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.
61 Solvers
Remove the two elements next to NaN value
411 Solvers
Find the maximum number of decimal places in a set of numbers
741 Solvers
Flag largest magnitude swings as they occur
582 Solvers
Justify the character string in center with proportional fonts
57 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!