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)?
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!