当一个限制是另一个积分变量的函数时,matlab 中的双重积分

double integration in matlab when one limit is a function of another integration variable

我正在计算 2 个用户通信的速率对 channel.We 使用拉格朗日方法为每个用户获得最佳速率值。 为此,我们必须找到方程的拉格朗日乘数并求解速率 equation.Both 方程具有二重积分,其中一个极限是另一个被积函数的函数 variable.I 需要一些有关使用双积分的帮助matlab.Also 中的积分是使用 int2 还是 dblquad 更好?

我假设你的意思是 integral2

dblquad is deprecated and doesn't even have the option of the integration limits being functions so your choice is easy. I recommend reading through the documentation for integral2 and trying the examples. There's one example where one of the upper limits is defined using an anonymous function.