You are on page 1of 39

MATLAB ( BY# MUHAMMAD USMAN ARSHID)

CHAPTER::5
Q#1
Command window

>> x=0:0.1:5;
>> y=x.^2-10.*sqrt(x)+2;
>> plot(x,y)

Figure window

-5

-10
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Q#2
Command window
>> x=-3:0.1:10;
>> y=(0.5.*x.^4)+(1.1).*(x.^3)-
(0.9).*(x.^2).*exp(-0.7.*x);
>> plot(x,y,'r*','markersize',2)
Figure window

7000

6000

5000

4000

3000

2000

1000

-1000
-4 -2 0 2 4 6 8 10
Q#3
Command window
y=3.*cos(1.7.*x).*exp(-
0.3.*x)+2.*sin(1.4.*x).*exp(0.3.*x);
plot(x,y,':m*','markersize',1.5)
xlabel('x','color','m')
ylabel('y','color','m')

Figure window

20

15

10

0
y

-5

-10

-15

-20
-8 -6 -4 -2 0 2 4 6 8
x
Q#4
Command window
x=0:0.01:10;
y=x.^2.*exp(-x);
plot(x,y,'c--','linewidth',2);
hold on
yd=-2.*x.*exp(-x);
plot(x,yd,'g:','linewidth',2);
xlabel('x');
ylabel('y');
legend('y','yd','nw');
hold off
xlabel('x','color','m')
ylabel('y','color','m')
Figure window

0.6
y
yd
0.4

0.2

0
y

-0.2

-0.4

-0.6

-0.8
0 1 2 3 4 5 6 7 8 9 10
x
Q#5
Command window
>> fplot('x^4-2*x^3+1.3*x^2+0.3*x+0.02',[-3 4],'-.r*');
>> figure
>> fplot('x^4-2*x^3+1.3*x^2+0.3*x+0.02',[0 1],'-.yd');

Figure window
Figure#1 for limits -3 and 4:

160

140

120

100

80

60

40

20

0
-3 -2 -1 0 1 2 3 4
Figure#2 for limits 0 and 1:

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Q#6
Command window
fplot('5*(exp(-0.5*x)-exp(-0.8*x))',[0 10],':+r')
xlabel('x','color','m','fontsize',12)
ylabel('y','color','m','fontsize',12)

Figure window

0.9

0.8

0.7

0.6

0.5
y

0.4

0.3

0.2

0.1

0
0 1 2 3 4 5 6 7 8 9 10
x
Q#7
Command window

x=linspace(-pi,2*pi,100);
>> y=sin(2*x).*cos(0.5*x).^2;
>> yd=2*cos(2*x).*cos(0.5*x).^2-
cos(0.5*x).*sin(2*x).*sin(0.5*x);
>> plot(x,y,'r-o',x,yd,'--c*');
>> xlabel('values of X');
>> ylabel('f(x) and fd(x)');
>> legend('f(x)','fd(x)','nw')

Figure window

2
f(x)
fd(x)
1.5

1
f(x) and fd(x)

0.5

-0.5

-1

-1.5
-4 -2 0 2 4 6 8
values of X
Q#8
Script file

%this makes the plot of the orbit of planet mercury arround the
sun
clear all
clc
theta=linspace(0,2*pi,100);
r=(3.44*10^7)./1-0.206.*cos(theta);
polar(theta,r)
title('\it orbit of planet mercury arround sun','fontsize',12)
Figure window or Command window
orbit of planet mercury arround sun
90 40000000
120 60
30000000

150 20000000 30

10000000

180 0

210 330

240 300
270
Q#9
Script file

%this makes the plot of parametric equation on given interval


with equally axis ranges
t=linspace(0,pi,100);
x=0.7.*sin(10.*t);
y=1.2.*sin(8.*t);
plot(x,y,'b--');
axis([-1.5,1.5 -1.5,1.5]);
xlabel('x');
ylabel('y');
title('\fontname{rm}\it plot of the parametric
equations','fontsize',12)

Figure window or Command window


plot of the parametric equations
1.5

0.5

0
y

-0.5

-1

-1.5
-1.5 -1 -0.5 0 0.5 1 1.5
x
Q#10
Script file
%this will make the plot of two butterfly curves on one page
%we can plot on one page by issuing the command of subplot
ta=linspace(0,2*pi,2000);
z=exp(cos(ta))-2.*cos(4.*ta)+sin(ta./12).^5;
xa=sin(ta).*z;
ya=cos(ta).*z;
subplot(2,1,1)
plot(xa,ya,'m');
axis([-5 5 -5 5]);
xlabel('x');
ylabel('y');
title('\it Two plots of butterfly curve with different intervals
on one page','fontsize',14,'color','b')
tb=linspace(0,10*pi,2000);
z=exp(cos(tb))-2.*cos(4.*tb)+sin(tb./12).^5;
xb=sin(tb).*z;
yb=cos(tb).*z;
subplot(2,1,2);
plot(xb,yb,'c');
axis([-5 5 -5 5])
xlabel('x');
ylabel('y');
Figure window or Command window
Two plots of butterfly curve with different intervals on one page
5

0
y

-5
-5 -4 -3 -2 -1 0 1 2 3 4 5
x

0
y

-5
-5 -4 -3 -2 -1 0 1 2 3 4 5
x
Q#11
Script file
%this makes the plot of astroid by using cartesion equation
x^2/3+y^2/3=1
%we plot this equation by solving equation as a function of x
clear all
clc
xp=[0:0.01:1];
yp=(1-xp.^(2/3)).^(3/2);
yn=-yp;
xn=[0:-0.01:-1];
plot(xp,yp,'k:',xp,yn,'m:',xn,yp,'k-',xn,yn,'m-')
xlabel(' values of x (xp & xn)','color','b');
ylabel('values of y (yp & yn)','color','b');
title('\it Plot of astroid using quadratic
Equation','fontsize',14,'color','c')

Figure window or Command window

Plot of astroid using quadratic Equation


1

0.8

0.6

0.4
values of y (yp & yn)

0.2

-0.2

-0.4

-0.6

-0.8

-1
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
values of x (xp & xn)
Q#12
Script file
% This makes the plot of the astroid by using
parametric equations
j=1;
for i=-pi:0.05:pi
t=i;
x(j,1)=cos(t).^3;
y(j,1)=sin(t).^3;
j=j+1;
end
plot(x,y,'m:')
xlabel('x','color','b')
ylabel('y','color','b')
title('\it Plot of the astroid by using parametric
equations','fontsize',12,'color','r')
Figure window or Command window
Plot of the astroid by using parametric equations
1

0.8

0.6

0.4

0.2

0
y

-0.2

-0.4

-0.6

-0.8

-1
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
x
Q#13 Script file
%this will make the plot of the function f(x)=(x^2-5*x+7)/(x^3-
8)in the domain of 0<x<4 the function have vertical asymptote at
x=2
clear all
clc
y=@(x)(x.^2-5*x+7)./(x.^3-8);
x1=0:0.1:1.9;
for i=1:20;
y1(i)=y(x1(i));
end
x2=2.1:0.1:4;
for i=1:20;
y2(i)=y(x2(i));
end
plot(x1,y1,':mo',x2,y2,'g-.*','markersize',5)
title('\it Plot of the function f(x)=(x^2-5*x+7)/(x^3-8) in the
domain 0<x<4,vertical asymptote at
x=2','fontsize',12,'color','m')
xlabel('0<=x_1<=1.9 & 2.1<=x_2<=4')
ylabel('y_1 & y_2')
legend('y_1','y_2','nw')
Figure window or Command window
Plot of the function f(x)=(x 2-5*x+7)/(x3-8) in the domain 0<x<4,vertical asymptote at x=2
0.8
y1
0.6 y2

0.4

0.2

0
2
y &y
1

-0.2

-0.4

-0.6

-0.8

-1
0 0.5 1 1.5 2 2.5 3 3.5 4
0<=x 1<=1.9 & 2.1<=x 2<=4
Q#14
Script file
%This draw the plot of the function given by splitting
domain into three equal parts
j=1;
for i=-4:0.05:4;
x=i;
f(j,1)=x+(1./(x.^2-1));
ii(j,1)=i;
j=j+1;
end
plot(ii,f,'mo:','markersize',4)
title('\it Function plot f(x)=x+1/x^2-1 have two
vertical,one oblique
asymptote','fontsize',12,'color','c')
xlabel('x','color','b')
ylabel('y','color','b')
ylim([-9,9])
Figure window or Command window
Function plot f(x)=x+1/x 2-1 have two vertical,one oblique asymptote

0
y

-2

-4

-6

-8

-4 -3 -2 -1 0 1 2 3 4
x
Q#16
Script file
%this draws the plot of pretzel by paramateric
equations
t=linspace(-4,4);
x=(3.3-0.3.*t.^2).*cos(t);
y=(3.3-0.4.*t.^2).*sin(t);
plot(x,y,'-g','linewidth',10)
xlabel('x')
ylabel('y')
title('\it Plot of pretzel by using paramateric
equations','color','b','fontsize',12)
Figure window or Command window:
Plot of pretzel by using paramateric equations
3

0
y

-1

-2

-3
-1.5 -1 -0.5 0 0.5 1 1.5 2 2.5 3 3.5
x
Q#17
Script file
%this draws the plot of fermat's spiral
t=0:0.1:5*pi;
r=sqrt(t);
nr=-sqrt(t);
polar(t,r,'r');
hold on
polar(t,nr,'b-');
hold off
title('\it plot of fermats
spiral','color','m','fontsize',12)
xlabel('\theta','color','b')
ylabel('r','color','b')
Figure window or Command window:
plot of fermats spiral
90 4
120 60
3

150 2 30

180 0
r

210 330

240 300
270


Q#18
Script file
%scatter polar plot of the function by using scatter
command combined with polar
clear all
clc
n=1:100;
r=sqrt(n);
theta=deg2rad(135.7*n);
polar(theta,r,’r’)
title('\it Spin plot of given
function','color','b','fontsize',12)
xlabel('\theta','color','b','fontsize',15)
ylabel('r','color','b','fontsize',15)

Figure window or Command window:


Spin plot of given function
90
10
120 60
8

6
150 30
4

180 0
r

210 330

240 300
270


Q#21
Script file
% this draws the plot of the observed data vs experimental data
t=10:10:70;
h=[9 22 44 63 80 94 97];
time=10:1:70;
height=100.8./(1+23*exp(-0.093*time));
plot(t,h,'ro');
hold on;
plot(time,height,'m-','linewidth',3)
xlabel('time(days)');
ylabel('height(in.)');
legend('observed data','experimental','location','ne');
title('\it Plot of the observed data vs
experimental','fontsize',12,'color','g')
Figure window or Command window:
Plot of the observed data vs experimental
120
observed data
experimental
100

80
height(in.)

60

40

20

0
0 100 200 300 400 500 600 700
time(days)
Q#22
Script file
%this program plots the voltage of current after t
seconds
clear all
clc
v0=input('enter the initial voltage =');
R=input('enter the resistence (ohms)=');
C=input('enter the capacitence (uF) =');
t=0:0.01:15;
Vc=v0.*(1-exp(-t./R*C));
plot(t,Vc,'m:');
xlabel('time (s)','color','b')
ylabel('Volatage current','color','b')
title('\it Plot of the voltage current vs
time','fontsize',12,'color','b')
Figure window or Command window:
-4
x 10 Plot of the voltage current vs time

2
Volatage current

0
0 5 10 15
time (s)
Q#23
Script file
%this programm plot the force between the particles vs z and
find the maximum F corresponding to z value
clear all
clc
e0=0.885*10^-12;
Q=9.4*10^-6;
q=2.4*10^-5;
R=0.1;
z=0:0.01:0.3;
F=(Q*q.*z)./(2*e0).*((1-z)./(sqrt(z.^2+R.^2)));
[Fmax,index]=max(F);
fprintf('the maximum value of F is: %6.1f N\n',Fmax)
fprintf('correspond to z=%3.1f\n',z(index))
plot(z,F,'r*:','markersize',5,'markerfacecolor','k')
xlabel('z (distance)','color','b','fontsize',12)
ylabel('F (N)','color','b')
title('\it Plot of the Force between particles vs
Z','fontsize',12,'color','g')
Figure window or Command window:
Plot of the Force between particles vs Z
100

90

80

70

60
F (N)

50

40

30

20

10

0
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35
z (distance)
Q#24
Script file
%This program makes the two plots one for the motion of
the particle by using parametric equations
%and the second plot on the same page for the velocity
on the given intervel of time
clear all
clc
t=0:0.1:5;
x=52*t-9*t.^2;
y=125-5*t.^2;
subplot(2,1,1);
plot(x,y,'m');
hold on
plot(x(9),y(9),'*','markersize',10)
title('\it plot of the motion of the particle vs
time','fontsize',12,'color','b')
xlabel('x (m)--->','fontsize',12,'color','b')
ylabel('y (m)--->','fontsize',12,'color','b')
vx=52-18*t;
vy=10*t;
v=sqrt(vx.^2+vy.^2);
subplot(2,1,2);
plot(t,v,'r:');
title('\it plot of the velocity of the particle vs
time','fontsize',12,'color','c')
xlabel('time (s)--->','fontsize',12,'color','c')
ylabel('velocity (m/s)--->','fontsize',12,'color','c')
vmin=min(v)
index=find(v==vmin)
tmin=t(index)
xmin=x(index)
ymin=y(index)
Figure window :

plot of the motion of the particle


150
y (m)--->

100

50

0
0 10 20 30 40 50 60 70 80
x (m)--->
plot of the velocity of the particle vs time
80
velocity (m/s)--->

60

40

20
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time (s)--->

Command window:
vmin =
25.2539
index =
23
tmin =
2.2000
xmin =
70.8400
ymin =
100.8000
Q#25
Script file
%this draws the plot of the height and velocity of
projectile shooted at v0 and angle given
v0=input('enter the initial velocity of projectile=');
g=input('enter the value of g=');
theta=sind(70);
t=0:0.01:38;
h=(v0.*t.*theta)-((g.*t.^2)./2);
subplot(2,1,1);
plot(t,h);
title('\it graph of height and
time','fontsize',15,'color','b')
xlabel('time-->','fontsize',12,'color','g')
ylabel('height-->','fontsize',12,'color','g')
v=sqrt(v0^2-2*v0*g.*t.*theta+g^2.*t.^2);
subplot(2,1,2);
plot(t,v)
title('\it graph of velocity and
time','fontsize',15,'color','b')
xlabel('time-->','fontsize',12,'color','g')
ylabel('velocity-->','fontsize',12,'color','g')

command window :
enter the initial velocity of projectile=200
enter the value of g=9.81
Figure window :

graph of height and time


2000

1500
height-->

1000

500

0
0 5 10 15 20 25 30 35 40
time-->
graph of velocity and time
200
velocity-->

150

100

50
0 5 10 15 20 25 30 35 40
time-->
Q#26
Script file
% this program makes the plot of the given distance
function >>
% distance,velocity and accelration respectively
t=0:0.01:8;
x=8-4*t.^3.*exp(-0.4.*t)+2*t.^2;
grid on
subplot(3,1,1);
plot(t,x,'m');
title('\it plot of distance vs time','color','b')
xlabel('t(s)-->','color','b')
ylabel('distance(ft)-->','color','b')
v=-12.*t.^2.*exp(-0.4*t)+1.6*t.^3.*exp(-0.4*t)+4*t;
subplot(3,1,2);
plot(t,v,'b:');
title('\it plot of velocity vs
time','fontsize',12,'color','b')
xlabel('t(s)-->','color','b')
ylabel('velocity(m/s)-->','color','b')
a=exp(-0.4*t).*(-0.64*t.^3+9.6*t.^2-24*t)+4;
subplot(3,1,3);
plot(t,a,'b')
title('\it plot of accelration vs
time','fontsize',12,'color','b')
xlabel('t(s)-->','color','b')
ylabel('accelration(m/s^2)-->','color','b')
grid off
Figure window:

plot of distance vs time


distance(ft)-->

100

-100
0 1 2 3 4 5 6 7 8
t(s)-->
plot of velocity vs time
velocity(m/s)-->

50

-50
0 1 2 3 4 5 6 7 8
t(s)-->
accelration(m/s 2)-->

plot of accelration vs time


10

-10
0 1 2 3 4 5 6 7 8
t(s)-->
Q#27
Script file
%this program makes the plot of the spectral energy
density R as a function of lembda at given temperature
of planks law of black body radiation
%where c is speed of light
%h is plank's constant
%k is boltz man constant
l=0.1:0.01:3;
c=3*10^8;
h=6.26*10^-34;
k=1.38*10^-23;
T=3000;
x=(2*pi*c^2*h)./(l.^5*10.^-30);
y=1./(exp((h*c)./(l.*k.*T.*10.^-6))-1);
R=x.*y;
plot(l,R);
hold on
T=4000;
x=(2*pi*c^2*h)./(l.^5*10.^-30);
y=1./(exp((h*c)./(l.*k.*T.*10.^-6))-1);
R=x.*y;
plot(l,R,'-.r');
T=5000;
x=(2*pi*c^2*h)./(l.^5*10.^-30);
y=1./(exp((h*c)./(l.*k.*T.*10.^-6))-1);
R=x.*y;
plot(l,R,':m');
hold off
xlabel('Wavelength(um)-->>','fontsize',12,'color','m');
ylabel('Spectal energy density(w/m^3)--
>>','fontsize',12,'color','m');
title('\it Plot of the spectraal energy density vs
wavelength','fontsize',12,'color','m');
legend('T1','T2','T3','se');
Figure window:
13
x 10 Plot of the spectraal energy density vs wavelength
6
T1
T2
5 T3
Spectal energy density(w/m )-->>
3

0
0 0.5 1 1.5 2 2.5 3
Wavelength(um)-->>
Q#28
Script file
%this function draws the plot of the ratio of voltages by using
logrithmic scale along x-axis and linear along y axis
f=10:1:50000;
R=2000;
C=0.2;
w=2*pi.*f;
a=w.*R.*C;
s=sqrt(1+w.^2.*R^2.*C^2);
y=a./s;
semilogx(f,y,'r')
xlabel('\fontname {times new roman}\it f--
>>','fontsize',15,'color','b')
ylabel('\fontname {times new roman}\it V/V_0 --
>>','fontsize',15,'color','b')
title('\fontname {times new roman}\it Plot of the ratio of the
magnitudes of voltages vs
frequencies','fontsize',15,'color','b')
Figure window:
Plot of the ratio of the magnitudes of voltages vs frequencies
1

1
V/V0 -->>

1
1 2 3 4 5
10 10 10 10 10
f-->>
Q#29
Script file
%this function draws the plot of the function in which current
measured as a function of time
% as in first intervel time is in the range of 0 to 0.5 and in
second range time exceed from 0.5 so we approximate the function
with equal time range 0 to 3
%for this purpose we creat a vector t range from 0 to 3 in which
both intervels get together
t=0:0.01:3;
R=4;
V=12;
L=1.3;
x=(V/R).*(1-exp((-R.*t/L))).*(t<0.5);
y=(exp((-R.*t/L)))*(V/R).*(exp(0.5*R/L)-1).*(t>=0.5);
I=x+y;
plot(t,I,':','linewidth',3)
xlabel('\fontname {times new roman}\it time(s)--
>','fontsize',15,'color','m')
ylabel('\fontname {times new roman}\it I(t)--
>','fontsize',15,'color','m')
title('\fontname {times new roman}\it plot of the I(t) vs
t(s)','fontsize',15,'color','m')
Figure window:
plot of the I(t) vs t(s)
2.5

1.5
I(t)-->

0.5

0
0 0.5 1 1.5 2 2.5 3
time(s)-->
Q#30
Script file
%this program will plot the engineering stress and starin vs
true stree and strain
clear all
clc
R0=input(' enter the initial radius (in)=');
L0=input('enter the initial length (in)=');
A0=pi*R0^2;
F=[0 4390 7250 10780 11710 12520 12800 13340 13740 13820 13850
13910 13990 14020 14130];
L=[0.5 0.50146 0.50226 0.50344 0.50423 0.50577 0.50693 0.51138
0.52006 0.52169 0.52362 0.52614 0.53406 0.54018 0.56466];
sig_e=F/A0;
eps_e=(L-L0)./L0;
sig_t=(F./A0).*(L./L0);
eps_t=log(L./L0);
plot(sig_e,eps_e,':b','linewidth',2);
hold on
plot(sig_t,eps_t,'-m');
hold off
xlabel('\fontname{times new roman}\it
Strain','fontsize',12,'color','b')
command window:
enter the initial radius (in)=0.25
enter the initial length (in)=0.5
Figure window:
plot of engineering and true stress and starin
0.14
engineering
true
0.12

0.1

0.08
Stress

0.06

0.04

0.02

0
0 1 2 3 4 5 6 7 8 9
Strain x 10
4
Q#31
Script file
%this function makes the plot the shorten amount of rod
length L moving with velocity v
%for that purpose according to the given condition plot
three graphs using diff properties and infer which is
more informative
clear all
clc
c=3*10^8;
L=2;
v=0:100:3*10^8;
d=L.*(1-sqrt(1-v.^2./c^2));
subplot(1,3,1);
plot(v,d,':r','linewidth',2);
title('\fontname{times new roman}\it Both linear
scales','fontsize',12,'color','r')
xlabel('v-->','color','r')
ylabel('\delta-->','color','r')
subplot(1,3,2);
semilogy(v,d,'linewidth',2);
title('\fontname{times new roman}\it log \delta and
linear v','fontsize',12,'color','b')
xlabel('v-->','color','b')
ylabel('\delta-->','color','b')
subplot(1,3,3);
loglog(v,d,'-.m')
title('\fontname{times new roman}\it Both are logritmic
scales','fontsize',12,'color','m')
xlabel('v-->','color','m')
ylabel('\delta-->','color','m')
figure window

Both linear scales 2


log  and linear v Both
2
are logritmic scales
2 10 10

1.8 0 0
10 10
1.6
-2 -2
10 10
1.4
-4 -4
10 10
1.2
-6 -6
-->

-->

-->
1 10 10

0.8 -8 -8
10 10
0.6
-10 -10
10 10
0.4
-12 -12
10 10
0.2
-14 -14
0 10 10
0 2 4 0 2 4 0 5 10
10 10 10
v--> 8 v--> 8
v-->
x 10 x 10

 Both logrithmic scaale graph is more informative bcz it


clearly gives inf about continous inc which is clearless in
linear scale graph and with being one scale is logriyhmic
versus linear.
Q#32
Script file
%this program makes the plot of the displacement and velocity as
a function of time for railroad car
t=0:0.01:4;
x=4.219.*(exp(-1.58.*t)-exp(-6.32.*t));
v=26.67.*exp(-6.32.*t)-6.67.*exp(-1.58.*t);
subplot(2,1,1);
plot(t,x,'linewidth',2);
title('\fontname{times new roman}\it Plot of distance vs time
','fontsize',12,'color','b')
xlabel('t(s)-->','color','b')
ylabel('x(m)-->','color','b')
subplot(2,1,2);
plot(t,v,'color','m','linewidth',2)
title('\fontname{times new roman}\it Plot of velocity vs time
','fontsize',12,'color','m')
xlabel('t(s)-->','color','m')
ylabel('v(m/s)-->','color','m')
figure window
Plot of distance vs time
2

1.5
x(m)-->

0.5

0
0 0.5 1 1.5 2 2.5 3 3.5 4
t(s)-->
Plot of velocity vs time
20

10
v(m/s)-->

-10
0 0.5 1 1.5 2 2.5 3 3.5 4
t(s)-->
Q#33
Script file
%this program will calculate the pressure by general
gas equation and van der waals equation
%after this plot the pressure vs given range of volume
clear all
clc
R=0.08206;
n=1; %consider for 1 mole
T=273; %standard temp
a=3.592;
b=0.04267;
V=0.065:0.001:1;
P=(n*R*T)./(V);
P_v=(n*R*T)./(V-n*b)-(n^2*a)./(V.^2);
plot(V,P,':m','linewidth',2)
hold on
plot(V,P_v,'r','linewidth',2)
xlabel('\fontname{times new roman}\it
Volume','fontsize',12,'color','b')
ylabel('\fontname{times new roman}\it
Pressure(atm)','fontsize',12,'color','b')
legend('for gen gas','for vander waals','ne')
title('\fontname{times new roman}\it comparison of
pressure calculated by gen gas and vand waals
equa','fontsize',12,'color','b')
figure window
comparison of pressure calculated by gen gas and vand waals equa
350
for gen gas
for vander waals
300

250
Pressure(atm)

200

150

100

50

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Volume

You might also like