How to solve integral equation in matlab
조회 수: 59 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1241782/image.png)
댓글 수: 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!