Hi All,
I actually managed to source a solution to this problem inhouse. If anyone else was after an answer:
Apparently MATLAB can handle non linear equations quite simply. You just add them in the function, not in matrix form. For instance, my solver was:
function dx=Package_1DNC_sub(t,x) . . . . dx=BC-AIC*x;
%This is the linear solution. I then wanted to add a non linear equation to the vector BC and couldnt figure out how to do it. I discovered we could add it to dx as a whole. Ie
for i=1... dx(i)=dx(i)+a*x(i)^4+b*x(i)^3.... etc end
Very handy and it works.
Hopefully this helps someone.
Cheers, Peter