The 4 questions in the images

1 answer below »
The 4 questions in the images
Answered 4 days AfterMar 03, 2021

Answer To: The 4 questions in the images

Rahul answered on Mar 07 2021
150 Votes
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 =...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here