MATLAB: Arithmetic to Functional Converter

arithmeticcommandfunctionalparsestringssyntax

I was wondering if anyone knows of a way to convert arithmetic to functional synatx. For example, I'd like to convert the string
'a+b'
to
'plus(a,b)'
Now, this was a very simple example. It gets a bit harder with more "complicated" expressions.
'a+b.*c'
becomes:
'plus(a,times(b,c))'
I assume MATLAB already does this, under the hood somewhere. There should be a way (either documented or not) to access this. Any insights?

Best Answer