{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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 Document Right 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 format compact ; clc; clear;
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.

{[ snackBarMessage ]}