Propblem with integration with constants

How can I integrate somehow that integration constants appear?
For example MATLAB prints: int(x)=1/2*x^2
Since I need it to be; int(x)=1/2*x^2+C

1 commentaire

Star Strider
Star Strider le 21 Sep 2012
According to ‘Tips’ at the end of the documentation for ‘int’:
Results returned by int do not include integration constants.

Connectez-vous pour commenter.

Réponses (1)

Andrei Bobrov
Andrei Bobrov le 21 Sep 2012
Modifié(e) : Andrei Bobrov le 21 Sep 2012
out = int(sym('x')) + sym('C')

Catégories

En savoir plus sur Simulink dans Centre d'aide et File Exchange

Question posée :

le 21 Sep 2012

Community Treasure Hunt

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

Start Hunting!

Translated by