Calculate the magnitude of electric field

Assignment Help MATLAB Programming
Reference no: EM131010618

Figure E2.4(a) shows the electric field at a point due to a charge which is a vector E. The magnitude of E is given by Coulomb's law E = (q/4Πε0r2) J, where q is magnitude of the charge, r is the distance between the charge and the point, and so is the permittivity constant (8.8542 x 10-12 C2/Nm2). The electric field E at any point is obtained by superposition of the electric field of each charge. An electric dipole with q = 12 x 10-19 C is created as shown in Fig. E2.4 (b).

Write a MATLAB program to determine and plot the magnitude of the electric field along the x-axis from x = - 8 cm to x= 8 cm.

Electric field at any point (x, 0) along the x-axis is obtained by adding the electric field vectors due to each of the charges. E = E+ E. The magnitude of the electric field is the length of the vector E. The problem is solved by following steps:

1. Create a vector x for points along the x-axis.

2. Calculate the distance from each charge to points on x-axis according to the equations

rms = √(0.03 -x)2 +0.032 and rps = √(0.03+ x)2 +0.032

1803_Calculate the magnitude of electric field.jpg

3. Write unit vectors in the directions from each charge to the points on the x-axis as emuv = [(0.03 -x)/rms, - 0.03/rms and epuv = [(x+ 0.03)/rps, 0.02/rps]

4 Calculate the magnitude of electric field due to positive and negative charges according to Coulomb's law:

E= emmag= (q/4Πε0rms2) and E = (q/4Πε0rps2).

5. Calculate em and ep by multiplying the unit vectors by emmag and epmag.

6 Calculate E as e = em + ep,

7. Find the magnitude of e.

8. Plot e as a function of x.

Verify your answer with Working Model 2D solution:

Hint: Goto World->Force Field-> (Dropdown Electrostatics) Pair-Wise->Fx

Your answer should look like: Check the Units if the values do not match

Reference no: EM131010618

Questions Cloud

How much work must be done to lift the entire cable : How much work must be done to lift the entire cable to the top of the pole? How much work must be done to lift half the cable to the top of the pole (so that 10 m still hangs over the edge)?
Define sociological theory : Question:Sought to develop a multidimensional framework that bridges the divide between individualist and collectivist perspectives. Which framework do you think provides the most accurate and balanced account of social life?
At what depth should valve be placed below top of reservoir : The valve is 25 cm on each side. The valve can withstand an average pressure of 1000 N/cm2. At what depth should the valve be placed below the top of the reservoir?
Is dell a push operation or a pull operation : Is Dell a "push" operation or a "pull" operation. Consider both the traditional definition of "pull" and the Factory Physics definition of "pull."
Calculate the magnitude of electric field : Calculate em and ep by multiplying the unit vectors by emmag and epmag - Create a vector x for points along the x-axis.
Pension funds have an accumulated value : Betty Bronson has just retired after 25 years with the electric company. Her total pension funds have an accumulated value of $280,000, and her life expectancy is 16 more years. Her pension fund manager assumes he can earn a 12 percent return on her ..
Comte is credited for being the founder of sociology : August Comte is credited for being the founder of sociology (Henslin, 2012). What prompted Comte's interest in understanding behavior? What "triggered" his need to reform society - a society that would be a better place to live in?
Develop a plan to gather data for a job analysis : For this assignment, you are asked to develop a plan to gather data for a job analysis, use at least two of the methods to gather data, write a short job description and job specification based on the data you have gathered. Please do not use you..
Define the term rationalism as used in sociology : Briefly define the term rationalism as used in sociology

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Calculate the geometric mean of numbers

Write a program to calculate the geometric mean of numbers entered by a user. The program should prompt the user to enter numbers and continue to accept the numbers until the user enters 999.

  Review of descriptive statistics and functions

Create a MATLAB function named "problem1", which accepts a number, a vector OR a matrix input and returns 4 outputs in this order related to the input: arithmetic average mean, standard deviation, median, max. The numbers you return for each outpu..

  Simulate rigid body mechanics

Write a MATLAB code to simulate rigid body mechanics. Create a video file of a free falling rod. Neglect effects from drag or loss of kinetic energy. Make sure the rod falls onto one end showing how the rigid body reacts to hitting the ground. Cannot..

  Write a matlab program to multiply two matrices

Write a MATLAB program to multiply two matrices together. Do not use the MATLAB matrix multiplication function, A*B.

  Calculate the response spectra for column - matlab program

I want a program in MATLAB that can calculate the response spectra for the columns. Then we should take a sine function for translation and a different sine function for torsion, and see if we are getting correct results.

  Construct a correlation receiver to detect the noisy signals

Write a program to plot a graph of the theoretical probability of error versus 10log10(Eb/N0) ranging from 0 to 12 dB in increments of 1 for the signals. This will be used to evaluate your simulations.

  The buffalo is running at 6 ms at 10 degrees south of east

while riding a horse at 8 ms at 25 degrees to the north of east a rider sees a buffalo he wants to shoot. the buffalo

  Simulate and compare the ber of a 16-psk system

Question is that" Simulate and compare the BER of a 16-PSK system and a 16-QAM system without Grey coding and Eb/N0=0,2,4,6,8,10 dB. "

  Calculate and display the altitude and velocity of rocket

Write a program that will solve the problem specified above( for the rocket). However, lit user of your program is to insert the starting height, and the time the rocket travels.

  Write a function named ''read_line''

Verify that your code works by saving some text into a file (created in notepad / textedit) and saving the file with extension '.txt'. You should attach the file (call it 'test.txt') with your code.

  Prompts the user to enter grades in a loop

Define a function that takes two input parameters, a vector of test scores and a scalar passing grade. The function returns the fraction of passing grades as a number in the range

  Plot the open loop displacement response of the

a farm equipment manufacturer has a need to actively reduce the vibration of the operators seat using an electrodynamic

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd