MATLAB: How to solve This Equation

polynomial

I all, I have to solve thise equation VFA=408.5 +25.4 pH + 33.9 COD/N -1.8 pH x COD/N +1.8 pH2 -0.3 COD/N2
where pH is a column vector and COD/N is a row vector (10000 numbers).
the result should be a matrix…
Thanks for the help!!

Best Answer

Use ndgrid() or meshgrid() and vectorize your expressions. You will need to figure out what pH2 and N2 are, though.