MATLAB: Expression or statement is incomplete or incorrect” whit NL-function some one can help me to find the problem

i have some error message "Expression or statement is incomplete or incorrect"
whit NL-function
some one can help me to find the problem
function dx=systfun(t,x)
dx(1) = ((g*A)/x(4))*[x(3)-Zmax_CE-(p0/(rho*g))-(alpha*x(4)*x(1)^2)];
dx(2) = ((g*A)/(L_CFco-x(4)))*[(ps/(rho*g))-x(3)+(1/(2*g*A^2))-(alpha*(L_CFco-x(4)))*x(2)^2];
dx(3)= ((-a_CF)^2/(g*a*x(4)))*[x(1)-x(2)+x(5)*sqrt(x(3)-Zi-(po/(rho*g)))]
dx(4)=0;
dx(5)=0;
[ti,xi]= ode45('systfun',[0 4],[20 20 0 0 0]):
plot(ti,xi,(:,1);'r')
thx ! 🙂

Best Answer

Your ode45 call ends with a colon instead of a semicolon