How to use ezplot in MATLAB?

I want to use ezplotin MATLAB, and because the function I want to build consists of a lot of terms, I can break it down into smaller functions. Let me give an example of a small number of terms and it can be generalized to a large number of members. To build a function:

y2+xy+xy3+x+1=0

I give y1=x+1, and I write in MATLAB the following:

x=[0:1:5]
y1=x+1
ezplot('y.^2+x*y+x*y.^3+y1')

But there is a mistake. Please tell me how I can fix the error. Can this function be used (dividing an equation or function into several terms)?

+3
source share
1 answer

x+1 y1. ezplot , 2 . ezplot 3 (x, y y1):

ezplot('y^2+x*y+x*y^3+y1');

, :

ezplot('y^2+x*y+x*y^3+x+1');

enter image description here


: ...

, , ezsurf ( , SO). y1 , ( x). , , , . :

y^2 + x*y + x*y^3 + y1 = 0

y1, :

y1 = -y^2 - x*y - x*y^3

y1 :

ezsurf('-y^2-x*y-x*y^3');

enter image description here

+10

Source: https://habr.com/ru/post/1713475/


All Articles