This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: .. xlabel('x'),. .. ylabel('y'),. .. zlabel('Temperature'),. .. axis square % Calculate the temparature at the middle of the plate and display the % result to 1 decimal place. x_mid = 1.5 y_mid = 1.5 middle_temp = 87*exp(-0.2*((x_mid-3)^2))*exp(-0.2*((y_mid-3)^2)) fprintf('Temperature at middle of plate: %.1f',middle_temp) Sheet1 Page 2 %create x values from 0 to 3 in 0.15 increments %create y values from 0 to 3 in 0.15 increments %use meshgrid function to generate an open mesh plot %function T (temperature) %set axes from 0 to 3 for x and y, 0 to 100 for z %set square axis %middle of plate has x-coordinate 1.5 %middle of plate has y-coordinate 1.5 %calculate temperature at middle of plate...
View Full Document
This note was uploaded on 01/22/2011 for the course ENG 006 taught by Professor Lagerstrom during the Spring '06 term at UC Davis.
- Spring '06