lab 203

# lab 203 - LAB 203 Mehar Ghei LABORATORY EXPERIMENT REPORT...

This preview shows pages 1–3. Sign up to view the full content.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: LAB 203 Mehar Ghei LABORATORY EXPERIMENT REPORT Name: Mehar Ghei Group Members: Yvonne Chen, Marvin Castellon, Jeremy Buhain Experiment Date: Thursday, February 17 th Course Name: PHYS 121A Section: H02 Instructor: Beidi He LABORATORY #203 Electric Potential 1. OBJECTIVE To calculate the electric potential due to a charge and draw a contour and surface plots of the electric potential using MATLAB. 2. THEORETICAL BACKGROUND = V 14πε1r = + r x2 y2 = = * k 14πε 9 109Nm2C2 = ( + ) V 14πε q1r1 q2r2 =(- ) +(- ) r12 x1 x 2 y1 y 2 =(- ) +(- ) r22 x2 x 2 y2 y 2 =-∂ ∂ = + , - ( , ) Ex V x Vx ∆x y V x y ∆x =-∂ ∂ = , +- ( , ) Ex V y Vx y ∆y V x y ∆y 3. EQUIPMENT a. MATLAB software 4. COLLECTED DATA VECTOR FIELD clear all q = 1*10^-9; esp0 = 8.85*10^-12; k = 1./(4*pi*esp0); Page 1 of 9 LAB 203 Mehar Ghei x = -2.1:0.2:2.1; y = -2.1:0.2:2.1; [X, Y] = meshgrid(x,y); r2 = (X-1).^2 + (Y-1).^2; r = sqrt(r2); V = k*q./r; [c,h] = contour(x,y,V,10); clabel(c,h); xlabel 'x' ; ylabel 'y' surf(x, y, V) [px, py] = gradient (V, 0.1, 0.1); quiver(x, y,-px,-py,2) xlabel 'x' ; ylabel 'y' CONTOUR clear all q = 1*10^-9; esp0 = 8.85*10^-12; k = 1./(4*pi*esp0); x = -2.1:0.2:2.1; y = -2.1:0.2:2.1; [X, Y] = meshgrid(x,y); r2 = (X-1).^2 + (Y-1).^2; r = sqrt(r2); V = k*q./r; [c,h] = contour(x,y,V,10); clabel(c,h); xlabel 'x' ; ylabel 'y' SURFACE clear all q = 1*10^-9; esp0 = 8.85*10^-12; k = 1./(4*pi*esp0); x = -2.1:0.2:2.1; y = -2.1:0.2:2.1; [X, Y] = meshgrid(x,y); r2 = (X-1).^2 + (Y-1).^2; r = sqrt(r2); V = k*q./r; [c,h] = contour(x,y,V,10); clabel(c,h); xlabel...
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 / 9

lab 203 - LAB 203 Mehar Ghei LABORATORY EXPERIMENT REPORT...

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

View Full Document
Ask a homework question - tutors are online