can anyone suggest me a command that talks about how matlab performed an arithmetic operation (its steps to give us the final result) ?
1 view (last 30 days)
More Answers (2)
Edited: Bruno Luong on 26 Sep 2018
Here is an idea, replace the number of your expression by functions (that return a scalar) and print out the order
function x = f(x)
When run it you'll get
Insert the operator(s) (there is only one right way to do it) you'll get the polish-reverse notation of the expression
1; 2; /; 0; 3; /; +; 456; /; 789; *
Meaning the expected specified evaluation order we told you.