MATLAB: Face error First input argument must be a function handle in symbolic integral

integralMATLABMATLAB and Simulink Student Suitesymbolic

Hello. I have issue with taking integration of symbolic function. It will be my appreciate if you can help me.
syms l
syms z
L1=1-(3*(z^2)/(l^2))+(2*(z^3)/(l^3));
L2=z-(2*(z^2)/(l))+((z^3)/(l^2));
L3=(3*(z^2)/(l^2))-(2*(z^3)/(l^3));
L4=((z^3)/(l^2))-((z^2)/l);
L=[L1 L2 L3 L4];
LT=transpose(L);
f=(LT.*L);
K=integral(f,z,0,l)

Best Answer

Try :
f=LT.*L
int(f,z,0,l)
Use int because variables are symbolic.