Parse and evaluate expressions like these:

'1 + 2'
'51 - 78'
'42 * 9'

The only operators are +, -, *.

Both arguments will be integers between -50 and 50.

Solution Stats

54 Solutions

24 Solvers

Last Solution submitted on Jan 03, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers24

Suggested Problems

More from this Author2

Problem Tags

Community Treasure Hunt

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

Start Hunting!