MATLAB Question Please solve this problem with MATLAB I alre
MATLAB Question!
Please solve this problem with MATLAB.
I already attached the solution of the problem below!!!!
You just make the solution with m-file!!!!
Here is Chapra 12.11 Problem.
And here is the solution of Chapra 12.11
Solution
clc;
 clear all;
 close all;
T11=0;
 T12=0;
 T21=0;
 T22=0;
for k=1:1:5
 a=T11;
 T11=(275+T12+T21)/4;
 error11=100*(T11-a)/T11;
 fprintf(\'\ \\t Iteration : %d \\t %f %f\',k,T11,error11);
   
 a=T12;
 T12=(225+T11+T22)/4;
 error12=100*(T12-a)/T12;
 fprintf(\'\ \\t\\t\\t\\t \\t %f \\t %f\',T12,error12);
 
   
 a=T21;
 T21=(75+T11+T22)/4;
 error21=100*(T21-a)/T21;
 fprintf(\'\ \\t\\t\\t\\t \\t %f \\t %f\',T21,error21);
   
 a=T22;
 T22=(25+T12+T21)/4;
 error22=100*(T22-a)/T22;
 fprintf(\'\ \\t\\t\\t\\t \\t %f \\t %f\\t\\t %f\ \',T22,error22,max(max(error11,error12),max(error21,error22)));
  end
OUTPUT:
    Iteration : 1    68.750000 100.000000
                   73.437500    100.000000
                   35.937500    100.000000
                   33.593750    100.000000       100.000000
   Iteration : 2    96.093750 28.455285
                   88.671875    17.180617
                   51.171875    29.770992
                   41.210938    18.483412       29.770992
   Iteration : 3    103.710938 7.344633
                   92.480469    4.118268
                   54.980469    6.927176
                   43.115234    4.416761       7.344633
   Iteration : 4    105.615234 1.803051
                   93.432617    1.019075
                   55.932617    1.702313
                   43.591309    1.092131       1.803051
   Iteration : 5    106.091309 0.448740
                   93.670654    0.254121
                   56.170654    0.423775
                   43.710327    0.272289       0.448740


