Drawing phase diagram of differential equation with MATLAB dx./dt=y*(4+x^2-y^2) dy./dt=-x(-2-x^2+y^2) Please write the MATLAB phase diagram method of the equation source program!
clear;clc
[x,y]=meshgrid(linspace(-5,5));
streamslice(x,y,y.*(4+x.^2-y.^2),-x.*(-2-x.^2+y.^2));
xlabel('x');ylabel('y');
RELATED INFORMATIONS
- 1. Using MATLAB to solve differential equations dx/dt=x-y-x(x^2+y^2) dy/dt=x+y-y(x^2+y^2) x(0)=2 y(0)1
- 2. Solving differential equations with MATLAB Equations: DX / dt = - 2aX + UY dy/dt=2Ax+auz-(A+u)y x+y+z=1 The solution of MATLAB is as follows >>global A,u >>[x,y,z]=dsolve('Dx=(-2)*A*x+u*y','Dy=2*A*x+2*u*z-(A+u)*y','x+y+z=1','x(0)=1,y(0)=0,z(0)=0') Result error: Error using ==> dsolve There are more ODEs than variables. Why did it go wrong?
- 3. How to draw function image of y = (1 + x) ^ (1 / x) with MATLAB
- 4. Draw the function image of F (x) = | X-2 |
- 5. Using MATLAB to draw a function image, such as y = X. ^ 2-4 * x + 5, how to find the coordinates of the maximum point on the image
- 6. Matlab draws the power exponent curve y = exp (- (x-1482.1) ^ 2) / 3694500; how to draw the curve of this function? The definition field is arbitrary
- 7. In MATLAB, y = 1 / (x ^ 2), at x = 0, how much does it take to expand into a fifth-order power series?
- 8. Y = 1 / (x ^ 2-3x + 2) expanded to power function
- 9. Ln (2 + 3x) is expanded into a power function of X
- 10. Is y = x ^ 2 + x a power function? Why?
- 11. How to draw the image of implicit function x ^ 4 + y ^ 2 = 1 with MATLAB?
- 12. Use matlab to solve the differential equation and draw the graphic solution Y = solve ('d3y = d2y-dy-y + T ^ 2 ','y (0) = 0','dy (0) = 1 ','d2y (0) = - 1') how to draw a graph after solving this problem!
- 13. How to express ln function in MATLAB?
- 14. How to output 2 or more graphs in MATLAB? For example, what statements can be added between plot (,); plot (,); and finally jump out of two graphs?
- 15. If the distance from the moving point P to the point a (0, - 2) on the plane is 2 less than the distance to the L: y line = 4, then the trajectory equation of the moving point P is Detailed process
- 16. The ratio of the distance from the moving point P to the point F (10,0) in the plane to the distance from the straight line x = 4 is 2. The trajectory equation of the point P is obtained
- 17. It is known that the distance from the moving point P to the point F (1,0) in the plane is smaller than the distance from the point P to the line x = - 2. Find the trajectory equation of the point P
- 18. The distance from a moving point P to the point F (2,0) in the plane is 1 less than the distance from it to the straight line x + 3 = 0 The answer is y ^ 2 = 8x (x > = - 3) Why be x
- 19. In the plane rectangular coordinate system, the locus of the moving point m (x, y) whose distance to the point F (0.1) is equal to the distance to the straight line L: y = - 1
- 20. In the plane rectangular coordinate system xoy, it is known that P is the moving point on the image of the function f (x) = ex (x > 0). The tangent l of the image at point P intersects the y-axis at point m, and the vertical line passing through point P intersects the y-axis at point n. suppose the ordinate of the midpoint of line Mn is t, then the maximum value of T is______ .