matlab多变量绘图和解方程问题
来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/07/30 23:43:49
matlab多变量绘图和解方程问题
各位matlab高手,我现在有下面这种类型的方程
y^2=x^3+x^2+1
请问,如何用matlab7绘图,并且求解这种方程的在实数域中的根?
各位matlab高手,我现在有下面这种类型的方程
y^2=x^3+x^2+1
请问,如何用matlab7绘图,并且求解这种方程的在实数域中的根?
![matlab多变量绘图和解方程问题](/uploads/image/z/15191856-0-6.jpg?t=matlab%E5%A4%9A%E5%8F%98%E9%87%8F%E7%BB%98%E5%9B%BE%E5%92%8C%E8%A7%A3%E6%96%B9%E7%A8%8B%E9%97%AE%E9%A2%98)
syms x y z, z='y^2-(x^3+x^2+1)', ezplot(z)
Codes above can give the picture, see attached file
And I don't quite understand what do you mean by 'root' here. Do you want to have function of x with variable y, or do you want to have function of y with variable x, or something else?
![](http://img.wesiedu.com/upload/9/f8/9f80611f788493a4fc68770e7a659ee0.jpg)
Codes above can give the picture, see attached file
And I don't quite understand what do you mean by 'root' here. Do you want to have function of x with variable y, or do you want to have function of y with variable x, or something else?
![](http://img.wesiedu.com/upload/9/f8/9f80611f788493a4fc68770e7a659ee0.jpg)