How to write MATLAB code to find the answer of the equation with given all values of its variables?

18 Views Asked by At

I'm practicing MATLAB. and I stuck with this problem.

Suppose I have Equation in general form like this

$d = ab + AB^2 + abB$

I have all values of its variable $a = 1 , b=2, A=4 ,B=6$

How to write MATLAB code to get the answer of this equation?

Thank you very much.