plot - How to use ezplot in MATLAB? -


I want to use ezplot in MATLAB, and because the function I want is one I can divide large numbers into small tasks. I give an example of a small number of terms and it can be generalized for a large number of words to plot the function:

  y2 + xy + xy3 + x + 1 = I write in MATLAB in the following:  

I enter y1 = x + 1

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

But there is an error Please tell me that I How can I fix this error. Is it possible to use this feature (split the equation or work into multiple words)?

Your error x + 1 to y1 Trying to change with Symbolic expression requires the work of only 2 symbolic variables. However, your call contains 3 symbolic variables ( x , y and y1 ), Ezplot :

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

If you use your basic equation, then everything should work fine:

  ezplot ('y ^ 2 + x * y + X * y ^ 3 + x + 1 ');  Edit:  If you were curious ...  

If you want to plot an equation with 3 variables, you must first One of them will need to solve the equation and then use the function (I have been shown this). Technically, y1 is an dependent variable as you defined it (because this variable depends on x ). However, for the following example, assume that this is an independent variable: equation: y ^ 2 + x * y + x * y ^ 3 + y1 = 0 pre <

and y1 will be plotted in the following ways:

  issurf ('- y ^ 2-x * yx * y ^ 3' );  


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -