你如何绘制非线性二次系统?

时间:2016-12-04 02:29:49

标签: matlab nonlinear-functions quadratic-programming

考虑以下两个非线性(二次)方程组的系数= 0.400256和= 0.916403。

- + - + ^ 2 = 0

- + + - ^ 2 = 0

绘制两个隐式方程并观察有两个解:一个在原点 另一个接近(1.3,0.8)。

以下是我的代码到目前为止的样子:

System.Object

1 个答案:

答案 0 :(得分:1)

你走在正确的轨道上,但没有正确定义这些功能。

a=0.400256;
b=0.916403;
f1 = @(x,y) -x + a*x - b*y + b*x.^2;
f2 = @(x,y) -y + b*x + a*y - a*x.^2;
ezplot(f1);
hold on
ezplot(f2);