- #1
xpack
- 37
- 0
I have this question:
http://img7.imageshack.us/img7/1399/52987960.png
And From this I created this:
And when I run it I get
And this image
http://img194.imageshack.us/img194/9489/30221576.jpg
I know there should be something plotted here. Can someone help me?
http://img7.imageshack.us/img7/1399/52987960.png
And From this I created this:
Code:
delete g286x08.txt; diary g286x08.txt
clear; clc; close all; echo on
%
%Gilat 286/08
%
R=8.31;
M=0.032;
x=0:20:1000;
y=70:5:320;
[X Y]=meshgrid(x,y);
Z=4*pi*(M./(2*pi*R*Y)).^(3./2)*X.^2.*exp(-M*X.^2)/(2*R*Y);
surf(X,Y,Z)
xlabel('Molecules Speed(m/s)'); ylabel('Temperature'); zlabel('Probability')
%
echo off; diary off
And when I run it I get
Code:
%
%Gilat 286/08
%
R=8.31;
M=0.032;
x=0:20:1000;
y=70:5:320;
[X Y]=meshgrid(x,y);
Z=4*pi*(M./(2*pi*R*Y)).^(3./2)*X.^2.*exp(-M*X.^2)/(2*R*Y);
Warning: Matrix is singular to working precision.
> In g286x08 at 13
surf(X,Y,Z)
xlabel('Molecules Speed(m/s)'); ylabel('Temperature'); zlabel('Probability')
%
echo off; diary off
And this image
http://img194.imageshack.us/img194/9489/30221576.jpg
I know there should be something plotted here. Can someone help me?
Last edited by a moderator: