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
syms x
ff=x^2-4*x+5;
ff1=diff(ff);
xx=0:.2:4;yy=subs(ff,x,xx);
a1=double(solve(ff1));ya1=double(subs(ff,x,a1));
plot(xx,yy);
hold on
plot(a1,ya1,'b*');
Text (A1, ya1, 'minimum point');
There's only a minimum, opening up
RELATED INFORMATIONS
- 1. 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
- 2. In MATLAB, y = 1 / (x ^ 2), at x = 0, how much does it take to expand into a fifth-order power series?
- 3. Y = 1 / (x ^ 2-3x + 2) expanded to power function
- 4. Ln (2 + 3x) is expanded into a power function of X
- 5. Is y = x ^ 2 + x a power function? Why?
- 6. How should doors and windows be represented in the floor plan?
- 7. The shape of a window of a building is shown in the figure. The upper part is a semicircle, and the lower part is two windows with the same shape, m in length and N in width Rectangle, calculating (1) Total length of window and window frame (2) When m = 50cm, n = 20cm, what are the area of the window and the total length of the window frame
- 8. In order to know the coordinates of the two points and the azimuth of the two points, find the azimuth of the third point (know the distance), and the intersection of the third point and the first two points, according to the architectural plane drawing It's mainly that we often get plane drawings for setting out. Many of them are not right angles, but oblique lines. How can we find his azimuth I just use the total station. I asked about the angle between point 1 and point 3 and the azimuth of point 1.2. I already know how to calculate the coordinates of point 3 (know the distance between point 1 and point 3). Do you understand?
- 9. The domain of surface integral (x ^ 2 + y ^ 2) DS is bounded by z = x ^ 2 + y ^ 2 and z = 1 The answer is (5 radical 5 + 6) / 12 seeking process or seeking correct answer (the answer may be wrong)
- 10. Let the tangent plane of the point (x, y, z) on the surface ∑: x ^ 2 / A ^ 2 + y ^ 2 / b ^ 2 + Z ^ 2 / C ^ 2 = 1 be π, and calculate the surface integral ∫ ∫ ∑ 1 / λ DS, where λ is the distance from the coordinate origin to π
- 11. Draw the function image of F (x) = | X-2 |
- 12. How to draw function image of y = (1 + x) ^ (1 / x) with MATLAB
- 13. 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?
- 14. 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
- 15. 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!
- 16. How to draw the image of implicit function x ^ 4 + y ^ 2 = 1 with MATLAB?
- 17. 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!
- 18. How to express ln function in MATLAB?
- 19. 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?
- 20. 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