x = linspace(-1,1); y = linspace(-1,1); [X,Y] = meshgrid(x,y); Z = 3.3 + 0.8*(cos(2*Y)*cosh(2*X))+ 6.5e-10*(cos(4*Y)*cosh(2*X))- 1.5*(cos(2*Y)-cosh(2*X)); contour(X,Y,Z) [C,h]= contour(X,Y,Z); clabel (C,h)
MATLAB: How can I plot this formula in an ellipse shape correctly, the code gives me incorrect ellipse shape (oppiste one). any help please.
contourellipseplot elliptical shape
Related Question
- Plotting the given Trigonometric functions
- WriteaMALTABscriptfileforplottingthebelowsurfacesbycoloringthesurfacewithacolormap, appropriately naming the axis and titling the plot. 1. z = sin(x+y)/ x^2+y^2 for (x,y) ∈ [−2,2]×[1,3]
- Draw ellipse in image
- Error using surf X, Y, Z, and C cannot be complex error
Best Answer