EvalEquation

This function can be used to evaluate an (list of) equation(s) written as string (char-array). It is based on the Shunting-yard algorithm

Download
Download

You are now following this Submission

Cite As

Dirk-Jan Kroon (2026). EvalEquation (https://nl.mathworks.com/matlabcentral/fileexchange/68458-evalequation), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.7

Fixed bug in parsing a number like -1.e-31

Download
1.0.6

Added text

Download
1.0.5

Added the missing file..

Download
1.0.4

Added multi-line support in EvalEquationScript

Download
1.0.3

Now explicit support of arrays as value of an input variable.
Also made compatible with Matlab Coder

Download
1.0.2

Support for more operators and functions

Download
1.0.1

Added supported functions: sqrt abs sin cos tan asin acos atan exp

Download
1.0.0

Download