LAB 201 - LAB 201 Mehar Ghei LABORATORY EXPERIMENT REPORT...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: LAB 201 Mehar Ghei LABORATORY EXPERIMENT REPORT Name: Mehar Ghei Group Members: Yvonne Chen, Marvin Castellon, Jeremy Buhain Experiment Date: Thursday, February 3 rd Course Name: PHYS 121A Section: H02 Instructor: Beidi He LABORATORY #201 Electric Field by Point Charges 1. OBJECTIVE To compute electric field caused by point charges using MATLAB. 2. THEORETICAL BACKGROUND = + (- ) E 14πε0qr2cosθi 14πε0qr2cos 90 θ j = cosθ xr- = cos90 θ yr = + r2 x2 y2 = + E q4πε0xr3i q4πε0yr3j = = k 14πε0 9x109Nm2C2 3. EQUIPMENT a. MATLAB software 4. COLLECTED DATA PART 1: >> Eps0 = 8.854*10^-12; k =1/(4*pi*Eps0); >> q1 = 1*10^-9; q2 = 1*10^-9; a=1; >> x= [-2.1:0.2:2.1]; >> E1 = q1*k*(x+a)./abs(x+a).^3; >> E2 = q2*k*(x-a)./abs(x-a).^3; >> Etotal= E1+E2 >> plot(x,Etotal) >> xlabel 'x' ; ylabel 'Etotal' >> grid >> title 'Total Electric Field vs. x' Page 1 of 11-2.5-2-1.5-1-0.5 0.5 1 1.5 2 2.5-1000-800-600-400-200 200 400 600 800 1000 x Etotal Total Electric Field vs. x LAB 201 Mehar Ghei >> Eps0 = 8.854*10^-12; k =1/(4*pi*Eps0); >> q1 = 1*10^-9; q2 = -1*10^-9; a=1; >> x= [-2.1:0.2:2.1]; >> E1 = q1*k*(x+a)./abs(x+a).^3; >> E2 = q2*k*(x-a)./abs(x-a).^3; >> Etotal= E1+E2 >> plot(x,Etotal) >> xlabel 'x' ; ylabel 'Etotal' >> grid >> title 'Total Electric Field vs. x' Page 2 of 11-2.5-2-1.5-1-0.5 0.5 1 1.5 2 2.5-1000-800-600-400-200 200 400 600 800 1000 x Etotal Total Electric Field vs. x LAB 201 Mehar Ghei esp0 = 8.85*10^-12; k = 1./(4*pi*esp0); q=1; [x,y]= meshgrid(-2.1:0.2:2.1, -2.1:0.2:2.1); E = k*q./(x.^2 + y.^2); [px] = cos (atan2(y,x)); [py]= sin(atan2(y,x)); xcomp=E.*px; ycomp = E.*py; quiver(x,y,xcomp,ycomp) hold on x=0; y=0; plot(x,y, '+' ) xlabel 'x' , ylabel 'y' Page 3 of 11-2.5-2-1.5-1-0.5 0.5 1 1.5 2 2.5-2.5-2-1.5-1-0.5 0.5 1 1.5 2 2.5 x y LAB 201 Mehar Ghei...
View Full Document

This note was uploaded on 05/02/2011 for the course PHYSICS 121A taught by Professor Beidehe during the Spring '11 term at NJIT.

Page1 / 11

LAB 201 - LAB 201 Mehar Ghei LABORATORY EXPERIMENT REPORT...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online