plot and calculate integral

11 Ansichten (letzte 30 Tage)
Hanna Norberg
Hanna Norberg am 16 Mai 2016
Beantwortet: Roger Stafford am 16 Mai 2016
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

Akzeptierte Antwort

Star Strider
Star Strider am 16 Mai 2016

Weitere Antworten (1)

Roger Stafford
Roger Stafford am 16 Mai 2016
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

Community Treasure Hunt

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

Start Hunting!

Translated by