You have no symbolic variables or symbolic functions. int() is only used for symbolic expressions or symbolic functions.
For numeric integration, there are several routines, the main two of which are integral() and integral2(). However, for those you need function handles.
f2 = @(t) (2-t).*cos(2*t);
c0 = (1/T)*integral(f1,-T/2,0) + (1/T)*integral(f2,0,T/2)
Best Answer