global Kp; >> Kp=5
>> global e ; >> e = 2; >> func = Kp*e
>> q= int(Kp*e, e, 0, 2)
??? Undefined function or method 'int' for input arguments of type 'double'.
No products are associated with this question.
int() is a function from the symbolic toolbox, that applies only to symbolic expressions (or character strings that represent symbolic expressions.) I suggest trying
syms e q = int(Kp*e, e, 0, 2)