MATLAB解方程、绘图问题y1 =(4*x1)/5 + x2/3 - x1*((4*x2)/3 - 4/5) - (4*x1*x2)/3 - 1/2y2 =x1/2 + (4*x2)/5 - x2*((3*x1)/2 - 4/5) - (3*x1*x2)/2 - 1/2我想令y1=0,解出x1(是x2的函数);令y2=0,解出x2(式x1的函数).解出方程之
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 07:36:49
MATLAB解方程、绘图问题y1 =(4*x1)/5 + x2/3 - x1*((4*x2)/3 - 4/5) - (4*x1*x2)/3 - 1/2y2 =x1/2 + (4*x2)/5 - x2*((3*x1)/2 - 4/5) - (3*x1*x2)/2 - 1/2我想令y1=0,解出x1(是x2的函数);令y2=0,解出x2(式x1的函数).解出方程之
MATLAB解方程、绘图问题
y1 =(4*x1)/5 + x2/3 - x1*((4*x2)/3 - 4/5) - (4*x1*x2)/3 - 1/2
y2 =x1/2 + (4*x2)/5 - x2*((3*x1)/2 - 4/5) - (3*x1*x2)/2 - 1/2
我想令y1=0,解出x1(是x2的函数);令y2=0,解出x2(式x1的函数).
解出方程之后的结果是(我自己计算的,不一定对):
x1=(15/16)*((3-2*x2)/(3-5*x2));
x2=(5-5*x1)/(16-30*x1);
然后绘出x1和x2的图形,横坐标是x1,纵坐标是x2.
多谢大家帮忙了!
MATLAB解方程、绘图问题y1 =(4*x1)/5 + x2/3 - x1*((4*x2)/3 - 4/5) - (4*x1*x2)/3 - 1/2y2 =x1/2 + (4*x2)/5 - x2*((3*x1)/2 - 4/5) - (3*x1*x2)/2 - 1/2我想令y1=0,解出x1(是x2的函数);令y2=0,解出x2(式x1的函数).解出方程之
syms x1 x2 y1;y1 =(4*x1)/5 + x2/3 - x1*((4*x2)/3 - 4/5) - (4*x1*x2)/3 - 1/2;
x1=solve(y1,'x1')
x1 =
5/16*(-3+2*x2)/(5*x2-3)
>> x2=solve(y1,'x2')
x2 =
3/10*(16*x1-5)/(8*x1-1)
>> ezplot(x2)