已有 974 次阅读2006-11-5 20:22 |个人分类:MATLAB
求函数矩阵(如[sin(x),3*x;4,(cos(x)+1)])的积分,是定积分.但是直接用quad肯定不行
用int函数,下列命令是求你所给函数的0到1区间的定积分intf>> syms x>> fun=[sin(x),3*x;4,(cos(x)+1)]fun =[ sin(x), 3*x][ 4, cos(x)+1]>> intf=int(fun,x,0,1)intf =[ -cos(1)+1, 3/2][ 4, 1+sin(1)]
涂鸦板
评论
|小黑屋|Archiver|手机版|联系我们|声振论坛
GMT+8, 2024-11-25 12:51 , Processed in 0.041341 second(s), 16 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.