MATLAB: Get problem with while loop

Hi I have written this code to calculate T1…T5 value. Where every loop works with value of R1…R5. But it does not work. Anyone please tell me what type of mistake i made to write this code.
clear all
%%%Thermal resistance
R1=0.0016;
R2=0.0018;
R3=0.00036;
R4=0.00032;
R5=0.0005;
p=25000;
Tc=25;
Tj=125;
%%%%Temperature of each layer
x=6;y=6;
while x<6&&y<6
x=x+1;
y=y+1;
Ty=Tc+(Rx*p);
end

Best Answer

R = [0.0016;0.0018;0.00036;0.00032;0.0005];
p=25000;
Tc=25;
T = Tc+(R*p);