Afficher commentaires plus anciens
各位前辈,小白求问
例如
a=2,b=1,
[x,y]=solve('a*x+1=y','b*x+2=y')
这样求得的X,Y的值时含a,b的表达式。如何求得x=1,y=3的数值解?
更复杂点的,
clc
clear all
syms I1 I2 ;
Vin=1;
L1=4e-6;
L2=L1;
C1=1e-9;
C2=C1;
T1=2*pi*sqrt(L1*C1);
T2=2*pi*sqrt(L2*C2);
[I1,I2]=solve('(Vin/L1)*(T2/2-T2/(2*pi)*acos(Vin/(L2*I2)*T2/(2*pi)))=I1*sqrt(1-(Vin*T1/(L1*I1*2*pi))^2)','(Vin/L2)*(T1/2-T1/(2*pi)*acos(Vin/(L1*I2)*T1/(2*pi)))=I2*sqrt(1-(Vin*T1/(L2*I1*2*pi))^2)')
这段包含acos的代码中能直接求得I1和I2的解吗?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur 数学 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!