You are on page 1of 2

6/2/13 7:14 PM

MATLAB Command Window

Enter the value of dt:0.0001


Enter the value of weighting factor:1
The value of c=alpha*dt/(dx*dx):0.040000
Temptable =
0
0.0500
0.1000
0.1500
0.2000
0.2500
0.3000
0.3500
0.4000
0.4500
0.5000
0.5500
0.6000
0.6500
0.7000
0.7500
0.8000
0.8500
0.9000
0.9500
1.0000
>>

300.0000
299.7105
299.4281
299.1598
298.9122
298.6913
298.5027
298.3510
298.2398
298.1721
298.1493
298.1721
298.2398
298.3510
298.5027
298.6913
298.9122
299.1598
299.4281
299.7105
300.0000

1 of 1

6/2/13 7:15 PM

MATLAB Command Window

Enter the value of dt:0.01


Enter the value of weighting factor:1
The value of c=alpha*dt/(dx*dx):4.000000
Temptable =
0
0.0500
0.1000
0.1500
0.2000
0.2500
0.3000
0.3500
0.4000
0.4500
0.5000
0.5500
0.6000
0.6500
0.7000
0.7500
0.8000
0.8500
0.9000
0.9500
1.0000
>>

300.0000
299.6373
299.2836
298.9475
298.6373
298.3607
298.1244
297.9344
297.7951
297.7102
297.6817
297.7102
297.7951
297.9344
298.1244
298.3607
298.6373
298.9475
299.2836
299.6373
300.0000

1 of 1

You might also like