LAB-2 LAM 1. Write a MATLAB program to compute ciestne facedae wo mitiple charges Show to clean theory and calculated comple for me print chatges (verify by MATLAB), and MATLAB cable fix pout charges 2. Write a MATLAB program to compute electric potential due to multiple charges Show the relevant theory, calculated sample firesc pent charge (venfy by MATLAB and MATLAB calculate fie prin care se MATLAB toplot 3D potential plot anunda sangle atliks pour charges Please note that you have to upload the MATLAB code fod MATLAR the medical LAB. Manual 1. Write a MATLAB program to compute electric force due to N multiple charges. Show the relevant theory and calculated example for two point charges (verify by MATLAB), and MATLAB calculation for N point charges. 2. Write a MATLAB program to compute electric potential due to N multiple charges. Show the relevant theory, calculated example for one point charge (verify by MATLAB), and MATLAB calculation for N point charges. Use MATLAB to plot 3D potential plot around a single and multiple point charges. Please note that you have to upload the MATLAB code files as well. Analytical solution: The current flowing through a surface is given by I= Ifu-ds where ds = r sin odd a, in spherical coordinate. It follows that we have 400 sin #sin odod ) 4007" sin dd ++ 4001 sind de 400 " (sin ball vi +40 400 x2 sinode +4 400 x 2. J2 2 let = 28 then d2d8 and we have 2.0 cos(20) 2010 400 I= 1 cosu du Jw 2 12 2 sina = 400 TX +4 2 sin 0.67 sin 0.21 x0.6.1 400X0.8 0.8 +4 = 77.42 A MATLAB Solution: To write a MATLAB program to evaluate the current flowing through the given surface, we divide that surface into many small surfaces and evaluate the currents flowing through each surface element. The summation of these elemental currents will be close to the actual current flowing through the given surface. This approach can be summarized by the following expression: 1-EJ-45 400 sin +4 } r* sine, de, de a) LAB-2 LAM 1. Write a MATLAB program to compute ciestne facedae wo mitiple charges Show to clean theory and calculated comple for me print chatges (verify by MATLAB), and MATLAB cable fix pout charges 2. Write a MATLAB program to compute electric potential due to multiple charges Show the relevant theory, calculated sample firesc pent charge (venfy by MATLAB and MATLAB calculate fie prin care se MATLAB toplot 3D potential plot anunda sangle atliks pour charges Please note that you have to upload the MATLAB code fod MATLAR the medical LAB. Manual 1. Write a MATLAB program to compute electric force due to N multiple charges. Show the relevant theory and calculated example for two point charges (verify by MATLAB), and MATLAB calculation for N point charges. 2. Write a MATLAB program to compute electric potential due to N multiple charges. Show the relevant theory, calculated example for one point charge (verify by MATLAB), and MATLAB calculation for N point charges. Use MATLAB to plot 3D potential plot around a single and multiple point charges. Please note that you have to upload the MATLAB code files as well. Analytical solution: The current flowing through a surface is given by I= Ifu-ds where ds = r sin odd a, in spherical coordinate. It follows that we have 400 sin #sin odod ) 4007" sin dd ++ 4001 sind de 400 " (sin ball vi +40 400 x2 sinode +4 400 x 2. J2 2 let = 28 then d2d8 and we have 2.0 cos(20) 2010 400 I= 1 cosu du Jw 2 12 2 sina = 400 TX +4 2 sin 0.67 sin 0.21 x0.6.1 400X0.8 0.8 +4 = 77.42 A MATLAB Solution: To write a MATLAB program to evaluate the current flowing through the given surface, we divide that surface into many small surfaces and evaluate the currents flowing through each surface element. The summation of these elemental currents will be close to the actual current flowing through the given surface. This approach can be summarized by the following expression: 1-EJ-45 400 sin +4 } r* sine, de, de a)