MATLAB Answers

Tom Wetherill

How to define this intergral

Asked by Tom Wetherill
on 25 May 2013

I am trying to find the integral between 0 and h but matlab keeps telling me that the int is not defined but every integral example i have checked seems to indicate that the integral is programmed into matlab but i can't find it. Is the formula below suitable to find the integral or am i missing something key. Any help would be appreciated.


  1 Comment


is an integral between 0 and h of which function?



No products are associated with this question.

1 Answer

Answer by Azzi Abdelmalek
on 25 May 2013
 Accepted answer

You can use a quad function. Example a function f(x)=x^2+3

f= @(x) x.^2+3;
Q = quad(f,0,10)  % Integral between 0 and 10


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!