Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help me with this matlab problem. My profesor needs the matlab code for t

ID: 2901368 • Letter: P

Question


Please help me with this matlab problem. My profesor needs the matlab code for this problem

If the plate is represented by a series of nodes (See following figure) centered finite-divided differences can be substituted for the second derivatives, which results in a system of linear algebraic equations. Solve for the temperature of the modes. Report must include Hand calculations for both problems to obtained Add matrix A anti vector B into matlab tor both cases Solve for x. using x = A/B for both cases Provide a discussion of the problems and your solution

Explanation / Answer

%T(i,j)=0.25*(T(i+1,j)+T(i-1,j)+T(i,j+1)+T(i,j-1))

clear all;

clc

for j=1:4

for i=1:4

T(i,j)=0;%initialisng all the points with 0

end

end

for i=2:3

T(i,1)=75;%boundary condition

end

for j=2:3

T(1,j)=100;%boundary condition

end

for j=2:3

T(4,j)=0;%boundary condition

end

for i=2:3

T(4,j)=25;%boundary condition

end

count=0;

while(count~=5)

for j=2:3

for i=2:3

T(i,j)=0.25*(T(i+1,j)+T(i-1,j)+T(i,j+1)+T(i,j-1));%using jacobi iteration

end

end

count=count+1;

end

disp('your required values are: ');

for j=1:4

for i=1:4

fprintf('T(%d,%d)=%f ',i,j,T(i,j));

end

end

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote