How to get a solution in terms of a constant when integrating?
1 view (last 30 days)
Show older comments
I would like to integrate a function, the purpose of this is to find a constant inside the function so I don´t know the value of the constant I´m looking for. It is a very simple integration. I would like the result to be in terms of the constant.
This is the integration.
And I would like to have this result in Matlab.
I am a beginner so I don´t know if it´s posible.
This is my code
F = @(x,a) c*x^2 + x;
q = integral (@(x) F,0,1)
0 Comments
Answers (1)
Walter Roberson
on 3 Oct 2021
This is something that you are not going to be able to do with integral(). integral() is strictly for numeric integration.
You would need to use the Symbolic Toolbox
syms c y
F = c*y^2 + y;
int(F, y, 0, 1)
0 Comments
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!