MATLAB:使用quad/quadl 绘制积分

发布于 2024-12-12 08:32:57 字数 125 浏览 5 评论 0原文

我想知道是否有人知道如何绘制使用quad/quadl 计算的积分,或者这是否可能。

我读到我可以将跟踪参数设置为非零,这会导致提供每次迭代的信息,但我不确定如何以及是否可以使用这些信息来绘制积分。

谢谢。

I would like to know if anybody knows how I can plot an integral calculated using quad/quadl, or if this is possible.

I read that I can set the trace parameter to be non-zero, and this results in the information of each iteration being provided, but I'm not sure how and if I can use the information to plot an integral.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空心空情空意 2024-12-19 08:32:57

无论如何,quad 和quadl 都不计算积分函数,即作为参数函数的积分。由于像这样的工具会迭代地工作,完善它们的估计,直到满足全局值的公差,因此它们不容易产生您想要的图。

您可以通过使用微分方程求解器来生成解(例如 ode45)来完成您想要的操作。

quad and quadl do not compute an integral function anyway, i.e., an integral as a function of the parameter. And since tools like this work iteratively, refining their estimate until it satisfies a tolerance on the global value, they are not easily made to produce the plot you desire.

You can do what you desire by using a differential equation solver to generate the solution, ode45 for example.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文