Is it wrong with my equation for energy? Cause my manual calculation not same with this.
2 次查看(过去 30 天)
显示 更早的评论
syms t; V=(1/c)*int(exp(t)*sin(3*t)); c=0.003; Energy = (1/2)*c.*V.^2;
figure(3); fplot(Energy,[0 6]); grid; xlabel('time'); ylabel('Energy'); title('Energy vs time');
1 个评论
Walter Roberson
2023-8-31
syms t c;
V = (1/c)*int(exp(t)*sin(3*t));
Energy = (1/2)*c.*V.^2
C = 0.003;
Energy = subs(Energy, c, C)
figure(3);
fplot(Energy,[0 6]);
grid;
xlabel('time');
ylabel('Energy');
title('Energy vs time');
回答(1 个)
Sivapriya Srinivasan
2023-8-31
Hello,
The equation you provided for calculating energy seems to be correct. However, it's important to note that the integration limits and the value of c might affect the result.
The equation calculates the energy at different time points using the given expression for V and the value of c. It then plots the energy as a function of time.
If you are getting different results from your manual calculation, it's possible that there might be an error in your manual calculation or a discrepancy in the integration limits or value of c you are using.
To confirm if the equation is correct, you can try evaluating V and Energy at specific time points and compare the results with your manual calculations. For example, you can substitute specific values of t into V and Energy and compare them.
To help you further, please provide the details of your manual calculation and the expected result. Additionally, if you have any specific error messages or unexpected outputs, please share them as well. This information will assist in identifying the potential problem and providing a more accurate solution
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Financial Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!