sigma665 发表于 2011-6-22 08:37:37

请问,怎样把积分时出现的指定的警告不显示?

Warning: Reached the limit on the maximum number of intervals in use.
Approximate bound on error is 6.1e-008. The integral may not exist, or
it may be difficult to approximate numerically. Increase MaxIntervalCount
to 822 to enable QUADGK to continue for another iteration.
> In quadgk>vadapt at 317
In quadgk at 208
In HGII at 29
In mymainfunction at 177

如这种类型的。

sigma665 发表于 2011-6-22 09:08:02

warning on all
warning('off', 'MATLAB:quadgk:MaxIntervalCountReached')

找到了,这样既可。
页: [1]
查看完整版本: 请问,怎样把积分时出现的指定的警告不显示?