How to solve the following equations for vc(t)?

1 view (last 30 days)
I have a equation vc(t) which depends on a function T, Please check the following code
vc==(291*cos((6339586188837495*t)/137438953472)*exp(-(500*t)/47))/1175000 + (368963916190342209*sin((6339586188837495*t)/137438953472)*exp(-(500*t)/47))/343597383680000000 + (1267917237767499*cos((6339586188837495*t)/137438953472)*exp(-(500*t)/47)*((582*cot((6339586188837495*T)/137438953472))/25 - (7*exp((500*T)/47))/(25*sin((6339586188837495*T)/137438953472))))/27487790694400000 - (sin((6339586188837495*t)/137438953472)*exp(-(500*t)/47)*((582*cot((6339586188837495*T)/137438953472))/25 - (7*exp((500*T)/47))/(25*sin((6339586188837495*T)/137438953472))))/94000
and
T=((vc-Vin)/Rc)*Tsw/2*1/(1.5*Il-0.5*Ipo);
How to solve for vc(t)?

Accepted Answer

Basil C.
Basil C. on 30 Jul 2018
Edited: Basil C. on 30 Jul 2018
Try the following
syms t;
T=((vc-Vin)/Rc)*Tsw/2*1/(1.5*Il-0.5*Ipo);
vc=(291*cos((6339586188837495*t)/137438953472)*exp(-(500*t)/47))/1175000 + (368963916190342209*sin((6339586188837495*t)/137438953472)*exp(-(500*t)/47))/343597383680000000 + (1267917237767499*cos((6339586188837495*t)/137438953472)*exp(-(500*t)/47)*((582*cot((6339586188837495*T)/137438953472))/25 - (7*exp((500*T)/47))/(25*sin((6339586188837495*T)/137438953472))))/27487790694400000 - (sin((6339586188837495*t)/137438953472)*exp(-(500*t)/47)*((582*cot((6339586188837495*T)/137438953472))/25 - (7*exp((500*T)/47))/(25*sin((6339586188837495*T)/137438953472))))/94000;
answer=vpasolve(vc);
Keep in mind not to use == operator to assign an equation to a variable.
And also define the value of T before defining the variable vc.
All the best
  2 Comments
Archit Asthana
Archit Asthana on 30 Jul 2018
I am assuming you meant vpasolve instead of vapsolve but still it is not working.
Basil C.
Basil C. on 30 Jul 2018
Sorry about that. Could you post the value of T.

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!