Info
此问题已关闭。 请重新打开它进行编辑或回答。
I need help with an integral
1 次查看(过去 30 天)
显示 更早的评论
Hi guys,
I want to have the following integral in my equation: where 0 is the beginning and t=120 is the ending of the integral, ∫x*(1-e^t), where t is time in seconds.
ytot = 60 * ( 80*22 + 29.7*11 + integral(x*(1-exp(120))))
I hope you understand what I mean,
thanks for your help
回答(1 个)
Star Strider
2017-1-22
I’m not certain what you want to do.
Try this:
t = 0:120;
ytot = 60 * ( 80*22 + 29.7*11 + integral(@(x)x*(1-exp(t)), min(t), max(t), 'ArrayValued',1));
2 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!