How to do this coding for this equation?
13 ビュー (過去 30 日間)
古いコメントを表示
i=25/50001*sin100t+2/100*cos100t+Ce^-2t,
t=0
0 件のコメント
採用された回答
Walter Roberson
2016 年 5 月 1 日
syms C t
eqn = i == 25/50001*sin(100*t)+2/100*cos(100*t)+C*exp(-2*t);
eqn0 = subs(eqn,t,0);
solve(eqn0, C)
7 件のコメント
Walter Roberson
2016 年 5 月 16 日
The above code is the solution for that.
Remember, i is the imaginary unit, http://www.mathworks.com/help/matlab/ref/i.html, the square root of negative 1. You have defined a value for the left side of the equation, sqrt(-1), and you have defined a t value, 0. Your equation comes evaluates down to sqrt(-1) = 1/50 + C . There is a single C that solves that equation, C = -1/50 + sqrt(-1) . That leads to a single point on the plot.
その他の回答 (1 件)
louis rassinfosse
2016 年 5 月 1 日
編集済み: louis rassinfosse
2016 年 5 月 1 日
Try to use the symbolic toolbox;
syms t
I=.....
t=...
And you should get an answer
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!