%Solution (Matlab) A=[300,-100,0,0,0;-100,200,-100,0,0;0,-100,200,-100,0;0,0,-100,200,-100;0,0,0,-100,300] TA=100 ; TB=500 ; B=[200*TA;0;0;0;200*TB] ; T=A\B x=[0 0.05 0.15 0.25 0.35 0.45 0.5]; T1=[100 140 220 300 380 460 500]; y = 800 * x + 100; title ('conduction de la chaleur dans une tige'); xlabel ('Distance x (m)'); ylabel ('Temperature (C)'); plot(x,T1,'o',x,y); grid on;