Professional Documents
Culture Documents
5 Plot of C Versus T
5 Plot of C Versus T
11
>> t = 10:10:60;
>> c = [3.4 2.6 1.6 1.3 1.0 0.5];
>> tf = 0:70;
>> cf = 4.84*exp(-0.034*tf);
>> plot(t,c,'--dc',tf,cf,'MarkerFaceColor','r');
>> title ('Plot of c versus t');
>> xlabel ('Values of t');
>> ylabel ('Values of c');
>> grid;
Plot of c versus t
5
4.5
4
Values of c
3.5
3
2.5
2
1.5
1
0.5
0
10
20
30
40
Values of t
50
60
70
Question 2.12
>> t = 10:10:60;
>> c = [3.4 2.6 1.6 1.3 1.0 0.5];
>> tf = 0:70;
>> cf = 4.84*exp(-0.034*tf);
>> semilogy(t,c,'--dc',tf,cf,'MarkerFaceColor','r');
>> title ('Plot of c versus t')
>> xlabel ('Values of t')
>> ylabel ('Values of c')
>> grid;
Values of c
Plot of c versus t
10
10
20
30
40
Values of t
50
60
70