如何用MATLAB求解参数方程组(新手)
symsabzpx1x2x3x4;eq1=('2*x2+4*x3/b^2+6*x4/b^4=z*tan(2p)');eq2=('12*x1*b^2+2*x2+6*x4/b...
syms a b z p x1 x2 x3 x4;
eq1=('2*x2+4*x3/b^2+6*x4/b^4=z*tan(2p)');
eq2=('12*x1*b^2+2*x2+6*x4/b^4=-z*tan(2p)');
eq3=('6*x1*b^2+2*x2-2*x3/b^2-6*x4/b^4-z*cot(2p)');
eq4=('2*x2+4*x3/a^2-2*x4/a^2-6*x4/a^4=0');
eq5=('6*x1*b^2+2*x2-2*x3/a^2-6*x4/a^4=0');
[x1,x2,x3,x4]=solve(eq1,eq2,eq3,eq4,eq5,'x1,x2,x3,x4')
运算结果是??? Error using ==> solve
' 2*x2+4*x3/b^2+6*x4/b^4=z*tan(2p) ' is not a valid expression or equation. 展开
eq1=('2*x2+4*x3/b^2+6*x4/b^4=z*tan(2p)');
eq2=('12*x1*b^2+2*x2+6*x4/b^4=-z*tan(2p)');
eq3=('6*x1*b^2+2*x2-2*x3/b^2-6*x4/b^4-z*cot(2p)');
eq4=('2*x2+4*x3/a^2-2*x4/a^2-6*x4/a^4=0');
eq5=('6*x1*b^2+2*x2-2*x3/a^2-6*x4/a^4=0');
[x1,x2,x3,x4]=solve(eq1,eq2,eq3,eq4,eq5,'x1,x2,x3,x4')
运算结果是??? Error using ==> solve
' 2*x2+4*x3/b^2+6*x4/b^4=z*tan(2p) ' is not a valid expression or equation. 展开
2个回答
展开全部
按照这个运行下看看
syms a b z p x1 x2 x3 x4;
eq1='2*x2+4*x3/b^2+6*x4/b^4=z*tan(2p)';
eq2='12*x1*b^2+2*x2+6*x4/b^4=-z*tan(2p)';
eq3='6*x1*b^2+2*x2-2*x3/b^2-6*x4/b^4=z*cot(2p)';
eq4='2*x2+4*x3/a^2-2*x4/a^2-6*x4/a^4=0';
eq5='6*x1*b^2+2*x2-2*x3/a^2-6*x4/a^4=0';
X=solve(eq1,eq2,eq3,eq4,eq5,'x1','x2','x3','x4')
syms a b z p x1 x2 x3 x4;
eq1='2*x2+4*x3/b^2+6*x4/b^4=z*tan(2p)';
eq2='12*x1*b^2+2*x2+6*x4/b^4=-z*tan(2p)';
eq3='6*x1*b^2+2*x2-2*x3/b^2-6*x4/b^4=z*cot(2p)';
eq4='2*x2+4*x3/a^2-2*x4/a^2-6*x4/a^4=0';
eq5='6*x1*b^2+2*x2-2*x3/a^2-6*x4/a^4=0';
X=solve(eq1,eq2,eq3,eq4,eq5,'x1','x2','x3','x4')
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询