Lab5 Section A Group2 (Assignment)
Lab5 Section A Group2 (Assignment)
1. Let the potential field V = 7 x 2 y exists in the region 1 x 1 and 1 y 1 . Write a program in Matlab, using example 1, which finds electric field intensity at all points in the region. Draw quiver plots of your result. Compare the two plots and see if there is any difference ? 2. Write a Matlab program which finds the electric potential at origin due to point charges of (5C) located in the region 3 x 3 and 3 y 3 . 3. If V = 50r 2 Cos , such that 0 r 3 & 0 2 . Find gradient of V . Draw a quiver plot of your result. 4. Point charges of (3C) and (-3C) are located at (0,1) and (0,-1) respectively. Write a program in Matlab which computes E at P(3,4). 5. If D = 3 y 2 a x + 3 x 2 ya y is defined in the region 1 x 1 & 1 y 1 . Find the divergence of D. Draw a surface plot of your result. 6. Given the general vector A = ( Cosx ) a x + ( Sinx ) a y find the curl of A everywhere in the region 5 x 5 & 5 y 5 . Draw a plot of your result.