How to do numerical integration using gauss qudrant as output after every iteration?
조회 수: 1 (최근 30일)
이전 댓글 표시
Is there any way to perform numerical integration using gauss of an excel data. I have performed the integration using cumtrapz. But i would like to perform the same integration using gauss qudrant. The code i have used to perform integration using cumtrapz is as follows.
X1 = xlsread('Abb73at100.xlsx','A1:A63');
Y1 = xlsread('Abb73at100.xlsx','B1:B63');
A1 = pi*(X1).^2;
Int1 = cumtrapz(A1, Y1);
X2 = xlsread('Abb73at100.xlsx','A64:A130');
Y2 = xlsread('Abb73at100.xlsx','B64:B130');
A2 = pi*(X2).^2;
Int2 = cumtrapz(A2, Y2);
plot(X1, Int1, 'linewidth', 2);
hold on
plot(X2, Int2, 'linewidth', 2);
hold off
Please kindly help me. Thanks in advance.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!