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

1 次查看(过去 30 天)
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)?

采纳的回答

Basil C.
Basil C. 2018-7-30
编辑:Basil C. 2018-7-30
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 个评论
Archit Asthana
Archit Asthana 2018-7-30
I am assuming you meant vpasolve instead of vapsolve but still it is not working.
Basil C.
Basil C. 2018-7-30
Sorry about that. Could you post the value of T.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by