How to write integral equation ?
显示 更早的评论
I like to check if my code represent the equation. Please help
10 个评论
David Hill
2020-9-5
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
2020-9-5
Michael Crown
2020-9-5
David Hill
2020-9-5
What is your function D with respect to c? For example:
D=@(c)5*c.^2+4*c-10;
Michael Crown
2020-9-5
Michael Crown
2020-9-5
Walter Roberson
2020-9-5
It looks to me as if you should be using trapz()
Michael Crown
2020-9-5
David Hill
2020-9-5
Yes, attach full code and ask a specific question.
Michael Crown
2020-9-5
采纳的回答
更多回答(3 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!