plot and calculate integral

조회 수: 11 (최근 30일)
Hanna Norberg
Hanna Norberg 2016년 5월 16일
답변: Roger Stafford 2016년 5월 16일
I need to create a script that calculates and plots an integral of any function. I am not allowed to use quad, I'm supposed to replace quad I guess. I am completely lost, does anyone know what to do?
Cheers

채택된 답변

Star Strider
Star Strider 2016년 5월 16일

추가 답변 (1개)

Roger Stafford
Roger Stafford 2016년 5월 16일
I wrote a routine for the File Exchange which computes a cumulative integral using cubic (third degree) approximation which you might like to use. It can be downloaded from:
http://www.mathworks.com/matlabcentral/fileexchange/19152-cumulative-cubic-integration

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by