MATLAB: I am a bigenner in matlab, I got this message when I am trying to run the code: Error using / Matrix dimensions must agree.

function fx = tubular4 (time,y)
global n length
global alpha beta
c = y';
%









% boundary condition @ x = 0
%
cz = (1/alpha)*(c(1)-1);
%
% boundary condition @ x = 1
%
cz (n) = 0;
%
% Direct second order derivative czz (diffusional term)
%
czz = dss044 (0,length,n,c,cz,2,2);
%
% first order derivarive (convective term)
%
cz = dss020 (0,length,n,c,1);
%
% return the discretized value of the math model
%
fx = [alpha*czz-cz-beta*c.^2]';
%-- End of the tubular4.m file --

Best Answer

Dear mr Image analyst, I tired your suggestions but the problem is still appear:
Error using / Matrix dimensions must agree.
Error in dss044 (line 24)
r12dxs = 1. /(12.*dx^2);
Error in tubular4 (line 17)
czz = dss044 (0,length,n,c,cz,2,2);
Error in odearguments (line 88)
f0 = feval(ode,t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ode15s (line 149)
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
Error in Untitled4 (line 31)
[timea,conca] = ode15s('tubular4',tspan,cic);