Effacer les filtres
Effacer les filtres

How to define this intergral

3 vues (au cours des 30 derniers jours)
Tom Wetherill
Tom Wetherill le 25 Mai 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.
h=2
Q=int(0,h)
  1 commentaire
Azzi Abdelmalek
Azzi Abdelmalek le 25 Mai 2013
Modifié(e) : Azzi Abdelmalek le 25 Mai 2013
int(0,h)?
is an integral between 0 and h of which function?

Connectez-vous pour commenter.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 25 Mai 2013
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

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by