How to solve integral equation in matlab
76 次查看(过去 30 天)
显示 更早的评论
1 个评论
John D'Errico
2022-12-24
When you ask a question like this, how to solve... you need to explain, solve for what?
That is, what is unknown? What values are known? What are you hoping to compute here? Without that information, there is no possibility to ever help you. Is there a reason why you want to make it more difficult to get help when you ask a question? Of course not. So make it easy for someone to help you.
回答(1 个)
Sulaymon Eshkabilov
2022-12-25
MATLAB has a few functions to compute numerical and symbolic integrals, e.g.: integral(), int(), or writing your own code using trapezoidal, mid-point, etc., methods
See doc2
% Symbolic integration
syms t a b
h(t) = sin(3*t);
H = int(h(t))
G = int(h(t), [a, b])
% Numerical integral
h1 = @(t)sin(3*t)
H1 = integral(h1, 0, pi)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!