Question: PLease solve your code here part in matlab In class we numerically solved the Laplace equation in 2 0 : m m x + s

PLease solve "your code here part" in matlab
In class we numerically solved the Laplace equation in 20 :
mmx+sy=0
wl-1,j+wi+1,j+wl,j-1+wl,j+1-4wl,j=0
The 9 unknowns, 9 linear equations were put into matrix form:
We could then solve for the unknown interior points wint using backslash, and thus, put together the whole matrix of w(x,y) points (including exterior points)
Much of the code is already provided. You need to create the A matrix and b vector. Then solve for wint using backslash.
Indexing is critical. Your f vector containing the boundary conditions should start at the bottom left of the square and rotate counter-clockwise around the edge, not including corners. That is:
Your uint vector should contain the interior nodes in the ordering:
=[u1,1u2,1cdotsu-1,1u1,2u2,2cdotsun-1,2cdotsu1,n-1u2,n-1cdotsu-1,n-1]T
My code will reshape your uint vector and put it in the right place in the u matrix. My code will also display some plots. Matlab Grader will check your values of the f,b, wint vectors and A matrix.
Script
 PLease solve "your code here part" in matlab In class we

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!