Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Help with matlab engineering project
1. HELP WITH MATLAB ENGINEERING PROJECT (SAMPLE ASSIGNMENT)
Our online Tutors are available 24*7 to provide Help with Matlab Engineering Homework/Assignment or a
long term Graduate/Undergraduate Matlab Engineering Project. Our Tutors being experienced and
proficient in Matlab Engineering ensure to provide high quality Matlab Engineering Homework Help.
Upload your Matlab Engineering Assignment at ‘Submit Your Assignment’ button or email it
to info@assignmentpedia.com . You can use our ‘Live Chat’ option to schedule an Online Tutoring
session with our Matlab Engineering Tutors.
Inhomogeneous Heat Equation on a Square Domain
This sample assignment shows how to solve the heat equations with a source term using
the parabolic function in the Partial Differential Equation Toolbox™.
The specific heat equation is
Generate Mesh
[p,e,t]=initmesh(g);
figure;
pdemesh(p,e,t); axis equal
2. Generate Initial Conditions
The discontinuous initial value is 1 inside the circle of radius 0.4 and zero outside.
u0=zeros(size(p,2),1);
ix=find(sqrt(p(1,:).^2+p(2,:).^2)<0.4);
u0(ix)=ones(size(ix));
Generate Time Discretization
We want the solution at 20 points in time between 0 and 0.1.
nframes=20;
tlist=linspace(0,0.1,nframes);
Find FEM Solution
u1=parabolic(u0,tlist,b,p,e,t,c,a,f,d);
75 successful steps
1 failed attempts
154 function evaluations
1 partial derivatives
17 LU decompositions
153 solutions of linear systems
Plot FEM Solution
To speed up the plotting, we interpolate to a rectangular grid.
figure; set(gcf,'Renderer','zbuffer');
newplot;
colormap(cool);
x=linspace(-1,1,31);y=x;
[~,tn,a2,a3]=tri2grid(p,t,u0,x,y);
umax=max(max(u1));
umin=min(min(u1));
for j=1:nframes,
u=tri2grid(p,t,u1(:,j),tn,a2,a3);i=find(isnan(u));u(i)=zeros(size(i));
surf(x,y,u);caxis([umin umax]);
axis([-1 1 -1 1 0 1]);
shading interp;
Mv(j) = getframe;
end
3. visit us at www.assignmentpedia.com or email us at info@assignmentpedia.com or call us at +1 520 8371215