temp - for n= 1:2:N...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function Tfinal = temp(x,y,N) f T= zeros(length(0:.2:x),length(0:.2:y)); temp2= 0; temp1= 0; L= 2; W= 2; T1= input('T1=') T2= input('T2=') T for x1=0:0.2:x; ii = (x1/0.2)+1; for y1= 0:0.2:y; jj= (y1/0.2)+1;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for n= 1:2:N; temp1= (2./n).*sin((n.*pi.*x1)/L).*((sinh((n.*pi.*y1)/2))/ . .. (sinh((n.*pi.*W)/L))); temp2= temp2+temp1; end T(ii,jj)= temp2; end end e Tfinal= ((T2-T1).*T) + T1;...
View Full Document

This note was uploaded on 02/18/2010 for the course ENGINEERIN 7 taught by Professor Patzek during the Spring '08 term at Berkeley.

Ask a homework question - tutors are online