Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 695. Parse string and identify specific string sequence in algebraic equation

Created by Siva

Given a string S that defines an algebraic expression such as:

S= 'X= A1 + A2*(Y1 + A3*Y3)*exp( A4*Y12 + Y1) ;'

return a cell array {'Y1', 'Y12', 'Y123'}

i.e. parse the string S and identify the unique variables in the expression that start with the letter "Y".


Problem Group

21 solvers submitted 43 solutions (2.05 solutions/solver).

Loading Solution Map...

Problem Comments