4_Quarterman_Patrick_HW04B

# 4_Quarterman_Patrick_HW04B - %HW04B WheatsoneBridge%Input...

This preview shows page 1. Sign up to view the full content.

Patrick Quarterman A40474664 HW04B Part 1: Script: function [Vg]= Wheatstone(R1,R2,R3,R4) %Patrick Quarterman, Section 4 %HW04B WheatsoneBridge %Input: R1,R2,R3,R4 (Scalar, no units) %Outputs: Vg (Scalar, unitless quantity) %Given V for battery Vbat=24; %Calculates Vg Vg=(R4/(R3+R4)-R2/(R1+R2))*Vbat; MATlab outputs: R1=2500;R2=220;R3=10000;R4=3300; [Vg]=Wheatstone(R1,R2,R3,R4) Vg = 4.0137 Part 2: Script: function [Vg]= Wheatstone(R1,R2,R3,R4) %Patrick Quarterman, Section 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %HW04B WheatsoneBridge %Input: R1,R2,R3,R4 (Vector or Scalar, no units) %Outputs: Vg (Vector or Scalar, unitless quantity) %Given V for battery Vbat=24; %Calculates Vg Vg=(R4./(R3+R4)-R2./(R1+R2)).*Vbat; MATlab Output: R1=[2500,220,10000,3300];R2=[220,1000,760,3300];[7900,22000,970,3300]; [10000,220,1200,1200]; >> [Vg]=Wheatstone(R1,R2,R3,R4) Vg = 4.0137 -13.7172 4.2597 -6.0451...
View Full Document

## This note was uploaded on 11/16/2010 for the course EGR 102 taught by Professor Hinds during the Spring '09 term at Michigan State University.

Ask a homework question - tutors are online