1964693
Based on the information you have given us you can just plot in excel T1,x1 and T2,x2 where x is the distance from one point to the other. You should get a line.
I am sure what you are asking is more complicated than that so you have to give us more information. How are the temperatures held on the ends? What is the rod made of?
Is it a transient situation or steady state? What is the purpose of the rod? Anything else pertinant?
StoneCold