How to write integral equation ?
Show older comments
I like to check if my code represent the equation. Please help
10 Comments
David Hill
on 5 Sep 2020
What is your function D(c)? Or is it an array? Depending on what D(c) is, and assuming you want a numerical solution, it should not be a hard problem.
Michael Crown
on 5 Sep 2020
Michael Crown
on 5 Sep 2020
David Hill
on 5 Sep 2020
What is your function D with respect to c? For example:
D=@(c)5*c.^2+4*c-10;
Michael Crown
on 5 Sep 2020
Michael Crown
on 5 Sep 2020
Walter Roberson
on 5 Sep 2020
It looks to me as if you should be using trapz()
Michael Crown
on 5 Sep 2020
David Hill
on 5 Sep 2020
Yes, attach full code and ask a specific question.
Michael Crown
on 5 Sep 2020
Accepted Answer
More Answers (3)
Michael Crown
on 6 Sep 2020
Edited: Walter Roberson
on 6 Sep 2020
Michael Crown
on 10 Sep 2020
0 votes
Categories
Find more on Numerical Integration and Differentiation 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!