matlab 想求出p(x,y)=0和q(x,y)=0的解[x0,y0] 为什么报错,说有三个变量?syms x y;p=-y+y^3;q=x;[x0,y0]=solve(p,q,'x','y')报错Warning:1 equations in 3 variables.New variables might be introduced.Warning:Explicit solution could not be foun
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/05 15:40:01
![matlab 想求出p(x,y)=0和q(x,y)=0的解[x0,y0] 为什么报错,说有三个变量?syms x y;p=-y+y^3;q=x;[x0,y0]=solve(p,q,'x','y')报错Warning:1 equations in 3 variables.New variables might be introduced.Warning:Explicit solution could not be foun](/uploads/image/z/960508-28-8.jpg?t=matlab+%E6%83%B3%E6%B1%82%E5%87%BAp%28x%2Cy%29%3D0%E5%92%8Cq%28x%2Cy%29%3D0%E7%9A%84%E8%A7%A3%5Bx0%2Cy0%5D+%E4%B8%BA%E4%BB%80%E4%B9%88%E6%8A%A5%E9%94%99%2C%E8%AF%B4%E6%9C%89%E4%B8%89%E4%B8%AA%E5%8F%98%E9%87%8F%3Fsyms+x+y%3Bp%3D-y%2By%5E3%3Bq%3Dx%3B%5Bx0%2Cy0%5D%3Dsolve%28p%2Cq%2C%27x%27%2C%27y%27%29%E6%8A%A5%E9%94%99Warning%3A1+equations+in+3+variables.New+variables+might+be+introduced.Warning%3AExplicit+solution+could+not+be+foun)
matlab 想求出p(x,y)=0和q(x,y)=0的解[x0,y0] 为什么报错,说有三个变量?syms x y;p=-y+y^3;q=x;[x0,y0]=solve(p,q,'x','y')报错Warning:1 equations in 3 variables.New variables might be introduced.Warning:Explicit solution could not be foun
matlab 想求出p(x,y)=0和q(x,y)=0的解[x0,y0] 为什么报错,说有三个变量?
syms x y;
p=-y+y^3;
q=x;
[x0,y0]=solve(p,q,'x','y')
报错Warning:1 equations in 3 variables.New variables might be introduced.
Warning:Explicit solution could not be found.
目测是matlab把x当成了函数,那么应该怎么改呢?我不想改掉p,q
matlab 想求出p(x,y)=0和q(x,y)=0的解[x0,y0] 为什么报错,说有三个变量?syms x y;p=-y+y^3;q=x;[x0,y0]=solve(p,q,'x','y')报错Warning:1 equations in 3 variables.New variables might be introduced.Warning:Explicit solution could not be foun
pq两个方程无关联性,且p方程有三个根,而q方程只有一个根,所以无法用“【x0,y0】=”的形式统一显示其解(x0跟y0维数不同).x0=solve(q);y0=solve(p);即可.