Im trying to plot function. I have wrote x=[-pi:pi/10:pi] and y=[-pi:pi/10:pi]. Also Z = (sin(sqrt(x.^2+y.^2)))/(sqrt(x.^2+y.^2)). When I try to plot the function z somehow gets to be only one number such as -0.0227 and I get error 'Vectors must be the same lengths'. Please help me to get this problem right

# MATLAB: Create two vectors X and Y of values from (-pi) to pi with a spacing of pi/10. Define the vector Z as: Z = (sin(sqrt(x^2+y^2)))/(sqrt(x^2+y^2))

sin sqrt

###### Related Question

- Y=sqrt((A^2*X^2+B^2*X^2)/(C+D^2*X^2))
- Undefined variable “cos” or class “cos”. Error in P4Afara_Question2 (line 5) z = (cos(x)).*cos(sqrt(x.^2 + y.^2)).exp(-1*abs(0.2*x));
- WriteaMALTABscriptﬁleforplottingthebelowsurfacesbycoloringthesurfacewithacolormap, appropriately naming the axis and titling the plot. 1. z = sin(x+y)/ x^2+y^2 for (x,y) ∈ [−2,2]×[1,3]
- Plotting graph of negative values of array in integral2 with 3 variables

## Best Answer