Can't plot 6 differential equation solution
I have the following 6*6 system:

I am trying to plot the functions x1,x2x,3x,4x,5x,x6 when the other parameters are given. The initial conditions are x1(0)=x2(0)=x3(0)=x4(0)=x5(0)=x6(0)=0. However when I solve it it takes ages to calculate and matlab said: Warning: "Explicit solution could not be found; implicit solution returned. " and I get an empty graph. If anyone can tell me what is the problem and if I have enough data to even solve the system, or what is the way to get the result for that system that would be great
code below:
clc clear all
E1=25; E2=12;
C1=33e-6; C2=C1; C=1500e-6; R=5;
L1=340e-6; L2=L1; L=300e-6;
D1=10; D2=55;
d1=D1/100; d2=D2/100;
syms x1(t) x2(t) x3(t) x4(t) x5(t) x6(t)
eq1=diff(x1,t)==(E1+x4(t)*(d1-1)+x5(t)*(d2-d1)+x6(t)*(d2-1))/L1; eq2=diff(x2,t)==(E2+x5(t)*(d2-1-d1)+x4(t)*d1+x6(t)*(d2-1))/L2; eq3=diff(x3,t)==(d1*x4(t)+x5(t)*(d2-d1)-x6(t)*(1-d2))/L; eq4=diff(x4,t)==(-d1*x3(t)-d1*x2(t)+(1-d1)*x1(t))/C1; eq5=diff(x5,t)==((1-d2+d1)*x2(t)-(d2-d1)*x1(t)-(d2-d1)*x3(t))/C2; eq6=diff(x6,t)==((1-d2)*(x1(t)+x2(t)+x3(t))-x6(t)/R)/C;
eq=[eq1;eq2;eq3;eq4;eq5;eq6];
con1=x1(0)==0; con2=x2(0)==0; con3=x3(0)==0; con4=x4(0)==0; con5=x5(0)==0; con6=x6(0)==0; conds=[con1;con2;con3;con4;con5;con6];
sol=dsolve(eq,conds); fplot(sol.x1);
Réponses (0)
Catégories
En savoir plus sur Calculus dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!