Answer To: Faculty of Science, Engineering and Computing Assessment Form MA6500 Coursework Assignment Module:...
Rahul answered on Mar 22 2021
Solution/CodeQuestion3.m
Solution/CodeQuestion4.m
function [pl,ql,pr,qr] = pdex1bc(xl,ul,xr,ur,t) % Boundary conditions
pl = 0;
ql = 1;
pr = 0;
qr = 1;
end
Solution/CodeQuestion4_t_0.5.m
function [pl,ql,pr,qr] = pdex1bc(xl,ul,xr,ur,t) % Boundary conditions
pl = 0;
ql = 1;
pr = 0;
qr = 1;
end
Solution/Plot_Question 3.fig
Solution/Plot_Question 4(0.1,0.01)at t 0.5.fig
Solution/Plot_Question 4(0.1,0.01)at t 1.5.fig
Solution/Plot_Question 4(0.25,0.1)at t 0.5.fig
Solution/Plot_Question 4(0.25,0.1)at t 1.5.fig
Solution/Sol(0.25,0.1)_Question 4 at t 0.5.txt
function [c,f,s] = pdex1pde(x,t,u,dudx) % Equation to solve
c = 2;
f = dudx;
s = u;
end
function u0 = pdex1ic(x) % Initial conditions
u0 = 4*cos(pi*x);
end
function [pl,ql,pr,qr] = pdex1bc(xl,ul,xr,ur,t) % Boundary conditions
pl = 0;
ql = 1;
pr = 0;
qr = 1;
end
x = linspace(0,1,4);
t =...