`%this script will plot a 3-D plot of P(v) as a function of v and T`

M=0.032;R=8.31;x=[0:1000];y=[70:320];[X,Y]=meshgrid(x,y);Z=4*pi*(M/(Y.*2*pi*R)).^(3/2)*(X.^2).*exp((-X.^2*M)./(Y.*2*R))surf(X,Y,Z)xlabel('v (m/s)');ylabel('T (K)');zlabel('P(v)')

# MATLAB: Can someone tell me what I’m doing wrong. I have looked over this for quite a while already with no success. I think I am messing up when it comes to element by element operation, but I have tried everything I know with no luck.

plotssurf

###### Related Question

- 3d plot error
- This code crashes the MATLAB and I don’t know y figure(2); x = linspace(0,2); y = linspace(5,7); [X,Y]=meshgrid(x,y); Z = sin(X*Y).*Y + Y*exp(-cos(X*Y^2)).*X; mesh(X,Y,Z); xlabel(‘x’); ylabel(‘y’); zlabel(‘z’); grid on; title(‘Question 4 plot’);
- Draw 3D object.write code in 2016a version. Help me,thanks!
- How to plot gradients
- How to plot x^2+z^2=9 above the xy plane and between y=-1 and y=2
- How can we plot this function as 3d with matlab
- 3D graph drawing
- Exercise: Add 3 to just the odd elements of x=[2 5 1 6]
- How to plot this function

## Best Answer