LiuFengz 发表于 2010-7-7 14:00:42

请教一个积分的问题

如我有一个函数=f(x),若我想使用quad 对a积分,请问该如何操作?

lfs03020315 发表于 2010-7-7 16:36:24

不知道你的函数具体是怎么样了,可以附上你的代码,试下匿名函数。

lengyunfeng 发表于 2010-7-7 23:14:16

According to your discription, your function is characterized by its output, which is a vector. In Matlab the vector function cannot(at least I havn't seen it before) be intergrated. Considering your disiration, the intergrate operation is just for the first output, I suggest you finds the relationship between a and x first.

qibbxxt 发表于 2010-7-8 06:02:27

一般来说,a要是个函数,才能用quad对其进行积分,如果你的返回值a是数值的话,是不是可以根据a的数值进行曲线拟合后再积分呢
页: [1]
查看完整版本: 请教一个积分的问题