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!