function f=BurbujaWilson2(w)
global Ren
global Vo
global A
global B
global C
global Pop
global k
global x
% La variable w contiene las incógnitas w=[T x_1]
T=w(1);
y=w(2);
P1vap=10.^(A(1)-B(1)./(T+C(1)))*760/1.01325; % mmHg
P2vap=10.^(A(2)-B(2)./(T+C(2)))*760/1.01325; % mmHg
Lambda12=k(4)./k(3).*exp(-k(1)./(Ren.*T));
Lambda21=k(3)./k(4).*exp(-k(2)./(Ren.*T));
gamma(1)=exp(-log(x(1)+Lambda12.*x(2))+x(2).*(Lambda12./(x(1)+Lambda12.*x(2))-Lambda21./(Lambda21.*x(1)+x(2))));
gamma(2)=exp(-log(x(2)+Lambda21.*x(1))-x(1).*(Lambda12./(x(1)+Lambda12.*x(2))-Lambda21./(Lambda21.*x(1)+x(2))));
f(1)=x(1).*gamma(1).*P1vap+x(2).*gamma(2).*P2vap-Pop;
f(2)=x(1).*gamma(1).*P1vap-y.*Pop;
Error using BurbujaWilson2 (line 11)
Not enough input arguments.