Lab Test #1 v5

Lab Test #1 v5 - R = 225 , C = 0.6x10-6 F and L = 0.5H. **...

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

View Full Document Right Arrow Icon
ECOR 2606 Lab Test #1 v5 (This problem adapted from problem 6.18 in the text) The impedance of a circuit containing a capacitor, an inductor, and a resister can be calculated using: 2 2 1 1 / 1 L C R Z where R = resistance ( ) C = capacitance (F) L = inductance (H) ω = frequency (rads/s) Z = impedance ( ) Part I (3 marks): Write a function m-file (impedance.m) that, given R , C , L, and ω (omega) , computes and returns Z . The formula does not allow R , L or ω to be zero. Have your function generate an error if any of these quantities is zero. . Part II (7 marks): The steps required to solve this part should be placed in a script m-file (script.m). Assume that
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: R = 225 , C = 0.6x10-6 F and L = 0.5H. ** Note ** Your are expected to make use of the function you produced in part I instead of re-implementing the equation within your script file. If you find it necessary to re-implement the equation you may do so but students who do this will not earn full marks. i) Produce two plots (figures 1 and 2) of Z vs for from 1 rads/s to 1000 rads/s Produce one plot using function fplot and the other using function plot ). ii) If Z is 75 , what is ? Precisely determine the answer (graphical solutions are NOT acceptable) and output it using function fprintf ....
View Full Document

This document was uploaded on 04/14/2010.

Ask a homework question - tutors are online