|
回复 14楼 的帖子
应该是没有引号的
去掉引号后有什么错误提示?
我来贴吧,错误如下:
??? Undefined function or method 'int' for input arguments of type 'inline'.
int里的fun也应该是sym型,不是inline型
help int
--- help for sym/int ---
INT Integrate.
INT(S) is the indefinite integral of S with respect to its symbolic
variable as defined by FINDSYM. S is a SYM (matrix or scalar).
If S is a constant, the integral is with respect to 'x'.
INT(S,v) is the indefinite integral of S with respect to v. v is a
scalar SYM.
INT(S,a,b) is the definite integral of S with respect to its
symbolic variable from a to b. a and b are each double or
symbolic scalars.
INT(S,v,a,b) is the definite integral of S with respect to v
from a to b.
Examples:
syms x x1 alpha u t;
A = [cos(x*t),sin(x*t);-sin(x*t),cos(x*t)];
int(1/(1+x^2)) returns atan(x)
int(sin(alpha*u),alpha) returns -cos(alpha*u)/u
int(besselj(1,x),x) returns -besselj(0,x)
int(x1*log(1+x1),0,1) returns 1/4
int(4*x*t,x,2,sin(t)) returns 2*sin(t)^2*t-8*t
int([exp(t),exp(alpha*t)]) returns [exp(t), 1/alpha*exp(alpha*t)]
int(A,t) returns [sin(x*t)/x, -cos(x*t)/x]
[cos(x*t)/x, sin(x*t)/x]
Overloaded methods:
char/int
filtstates.int
[ 本帖最后由 eight 于 2008-2-22 15:54 编辑 ] |
评分
-
1
查看全部评分
-
|