Parse string and identify specific string sequence in algebraic equation - MATLAB Cody - MATLAB Central

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

Difficulty:Rate

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".

Solution Stats

53.42% Correct | 46.58% Incorrect
Last Solution submitted on Dec 10, 2024

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers57

Suggested Problems

Problem Tags

Community Treasure Hunt

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

Start Hunting!