How can I solve This Equation?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
mirko d'antoni
am 18 Apr. 2016
Kommentiert: Walter Roberson
am 18 Apr. 2016
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!!
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 18 Apr. 2016
Use ndgrid() or meshgrid() and vectorize your expressions. You will need to figure out what pH2 and N2 are, though.
6 Kommentare
Walter Roberson
am 18 Apr. 2016
[gpH, gCODN] = ndgrid(pH, COD/n);
VFA = 408.5 + 25.4 * gpH + 33.9 * gCODN - 1.8 * gpH .* gCODN + 1.8 * gpH.^2 - 0.3 * gCODN.^2;
Note: I have interpreted COD/N2 here as (COD/N)^2 . If it was intended to be COD/(N^2) then the above code is not correct.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Polynomials finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
