ps6solnsSp06

ps6solnsSp06 - %Engineering 6, Spring 2006, Problem 6.1...

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

View Full Document Right Arrow Icon
%Engineering 6, Spring 2006, Problem 6.1 Solution %(Equivalent resistance of parallel resistors) %Suppress extra lines in output format compact ; clc; %Clear command window and variables clear; %Define vector of resistance values r = [50 75 300 60 500 180 200]; %Call parallelresistors function equiv_resistance = parallelresistors(r); %Display results fprintf( 'The equivalent resistance of the given parallel resistors is %.1f ohms\n' ,equiv_resistance); %Engineering 6, Spring 2006, Problem 6.1 function file %(Parallel resistors calculation) function [R_equiv] = parallelresistors(resistances) %PARALLELRESISTORS calculates combined resistance of parallel resistors %The resistor values are stored in the vector named resistances R_equiv = sum(1./resistances)^-1; Displayed Results: The equivalent resistance of the given parallel resistors is 15.2 ohms
Background image of page 1

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

View Full DocumentRight Arrow Icon
%Engineering 6, Spring 2006, Problem 6.2 Solution %(Angles of a triangle calculation) %Suppress extra lines in output and clear command window and variables
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/22/2011 for the course ENG 006 taught by Professor Lagerstrom during the Spring '06 term at UC Davis.

Page1 / 4

ps6solnsSp06 - %Engineering 6, Spring 2006, Problem 6.1...

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

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