MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Opportunities for recent engineering grads.
New to MATLAB?
>> 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'.
Direct link to this comment:
In the future, you might want to give your questions a more meaningful title.
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
q = int(Kp*e, e, 0, 2)
Direct link to this answer: