Info
此问题已关闭。 请重新打开它进行编辑或回答。
I don't get this
2 次查看(过去 30 天)
显示 更早的评论
global Kp;
>> Kp=5
Kp =
5
>> global e ;
>> e = 2;
>> func = Kp*e
func =
10
>> q= int(Kp*e, e, 0, 2)
??? Undefined function or method 'int' for input arguments of type 'double'.
1 个评论
回答(1 个)
Walter Roberson
2013-3-29
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)
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!