matlabas.docx - Q1=8e-9%charges on Q1 Q2=8e-9%charges on Q2 pL=4e-9%charge density of the line Epsilono=8.8419e-12%Permitivity of free space P=[0 0

matlabas.docx - Q1=8e-9%charges on Q1 Q2=8e-9%charges on Q2...

This preview shows page 1 out of 1 page.

Q1=8e-9;%charges on Q1 Q2=8e-9;%charges on Q2 pL=4e-9;%charge density of the line Epsilono=8.8419e-12;%Permitivity of free space P=[0 0 0];%coordinates of observation point A=[0 1 1];%coordinates of Q1 B=[0 -1 1];%coordinates of Q2 C=[3.5 3.5 0];%coordinates of the center of the line charge %%the following calculates the electric fields at the observation point generated by the point charges R1=P-A; %the vector pointing from Q1 to the observation point R2=P-B; %the vector pointing from Q2 to the observation point R1Mag=norm(R1);%the magnitude of R1 R2Mag=norm(R2);%the magnitude of R1 E1=Q1/(4*pi*Epsilono*R1Mag^2)*R1;%the electric field generated by Q1
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Spring '18
  • Professor Obura Oluoch
  • Vector Space, Electric charge, Fundamental physics concepts, 8e-9, 4e-9

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture