Integrate in time domain
6 次查看(过去 30 天)
显示 更早的评论
I have a function named Kp*e... How do I integrate it in MATLAB say from 0 to 5?
0 个评论
回答(1 个)
Mahdi
2013-3-28
So in your case, it would be
syms e Kp
int(Kp.*e, e, 0,5)
The result would be 25.*Kp/2. You can obviously play around with this by setting Kp to a value, and so on...
2 个评论
Mahdi
2013-3-28
Did you use the line before it? You need syms e Kp fo this to work. (Sets Kp as a symbol). You can also do this for example:
Kp=4.4 % A number I chose
syms e
int(Kp.*e, e, 0,5)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!