santoslhwch3b

2
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Program Title: Temperature Distribution File Name: % % Programmer Name(s): Lucas Santos de Morais % % Date created: 2/11/2015 Date last modified: 2/11/2015 % % Program Description: % % Calculate the temperature in specific points over a plate. % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1) Calculate the temperature at x1, x2, x3 and x4 using the mean value property. The mean value property states that the temperature at a specific point is the average of the 4 points around this point.

Upload: lucas-santos

Post on 21-Dec-2015

214 views

Category:

Documents


1 download

DESCRIPTION

matlab stuff

TRANSCRIPT

Page 1: SantosLHWCh3b

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Program Title: Temperature Distribution File Name:

%

% Programmer Name(s): Lucas Santos de Morais

%

% Date created: 2/11/2015 Date last modified: 2/11/2015

%

% Program Description: %

% Calculate the temperature in specific points over a plate.

%

% %

% %

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

1) Calculate the temperature at x1, x2, x3 and x4 using the mean value property. The mean value

property states that the temperature at a specific point is the average of the 4 points around

this point.

Page 2: SantosLHWCh3b

Mean Value Property equations:

=>

Solution:

%3b clear, clc A = [4 -1 -1 0; -1 4 0 -1; -1 0 4 -1; 0 -1 -1 4]; b = [45 40 55 50]'; T = A\b