I am unable to plot an Eout1 vs pH graph for changing quantities of Temperature and pH values.The code is:
pH = 0:14;
T = 300;
R = 8.3145;
n = 1;
F = 96485;
E0 = 30e-3
Eout = -(E0 - (R*T/n*F)*pH)/1.0e+09
T1 = 294:307;
Eout1 = -(E0 - ((T1*R)/n*F)*pH)/1.0e+09
The first Eout vs pH graphplots fine. However, the Eout1 vs pH graph displays the error message:
Error using *
Inner matrix dimensions must agree.
I did try using "." operator in some combinations still no resolve.
Any ideas on solving this?