function cmatrix = ccoeffunction(region,state)

n1 = 9;

nr = numel(region.x);

cmatrix = zeros(n1,nr);

cmatrix(1,:) = ones(1,nr);

cmatrix(2,:) = 2*ones(1,nr);

cmatrix(3,:) = 8*ones(1,nr);

cmatrix(4,:) = 1+region.x.^2 + region.y.^2;

cmatrix(5,:) = state.u(2,:)./(1 + state.u(1,:).^2 + state.u(3,:).^2);

cmatrix(6,:) = cmatrix(4,:);

cmatrix(7,:) = 5*region.subdomain;

cmatrix(8,:) = -ones(1,nr);

cmatrix(9,:) = cmatrix(7,:);

I created a function for c coefficient in PDE toolbox using the above example given in MATLAB documentation. My problem is a system of parabolic equations. I want to make sure that parabolic non linear system of PDE can be solved using PDE toolbox in MATLAB. However when I write the state.u as mentioned above error shows up: Function handle specifying a coefficient must accept two input arguments and return one output argument.

Similar questions and discussions