how does double integration work
이전 댓글 표시
Hello eveyone, please I am trying to find the first and second integral of a given fuction (say x). I wrote a code below. But it seems the second integration plot does not work appropriately. pls can someone help me. And also make other neccessary corrections. Thank you for your help
x = -100: 1/10:100;
f = 6*x;
first_integral_plot = cumtrapz(x, f); % Integration
second_integral_plot = cumtrapz(x, first_integral_plot ); % Integration
figure;subplot; subplot(311);plot(real(f));title('original function')
subplot(312);plot(first_integral_plot);title('integration2')
subplot(313); plot(second_integral_plot);title('integration2')
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Numeric Solvers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



