필터 지우기
필터 지우기

How to do this coding for this equation?

조회 수: 1 (최근 30일)
Fairuz Ridwan
Fairuz Ridwan 2016년 5월 1일
댓글: Fairuz Ridwan 2016년 5월 16일
i=25/50001*sin100t+2/100*cos100t+Ce^-2t,
t=0

채택된 답변

Walter Roberson
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
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.
Fairuz Ridwan
Fairuz Ridwan 2016년 5월 16일
Oh, I see that's mean C just the constant. Thanks for your help sir. Really appreciate.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

louis rassinfosse
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
  댓글 수: 1
Fairuz Ridwan
Fairuz Ridwan 2016년 5월 1일
I'm blank with the command exactly.. Haha.. btw thanks a lot.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by