Back to basics 24 - Symbolic variables - MATLAB Cody - MATLAB Central

Problem 505. Back to basics 24 - Symbolic variables

Difficulty:Rate
Covering some basic topics I haven't seen elsewhere on Cody.
Given a string algebraic expression, return the symbolic variables as a cell array of strings.
Example:
Input: 'cos(pi*x - beta1)'
Output: {'beta'; 'x'}

Solution Stats

61.04% Correct | 38.96% Incorrect
Last Solution submitted on Jun 27, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
1
3

Problem Recent Solvers143

Suggested Problems

More from this Author39

Problem Tags

Community Treasure Hunt

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

Start Hunting!