Guys I really need help with this assignment Please please S

Guys I really need help with this assignment. Please please. :(((

Solution

The matlab codes are given below:

N=input(\'N=\');
k=input(\'k=\');
h=input(\'h=\');
Te=input(\'Te=\');
a=h+2*k*N^2;
b=-k*N^2;
A = zeros(N, N);
for i=1:N
for j=1:N
if (i==j)
A(i,j)=a;
else
A(i,j+1)=b;
A(i,j-1)=b;
end
end
end
for i=1:N
B(i)= h*Te;
end
T = inv(A)* B\';
plot(T)

Guys I really need help with this assignment. Please please. :(((SolutionThe matlab codes are given below: N=input(\'N=\'); k=input(\'k=\'); h=input(\'h=\'); Te

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site