Pre Lab 2

3
Circuit Theory Lab Group members: Ammad Azam (EE-008) Abdul Moiz (EE-019) Syed Muhammad Uzair Ali (EE-015) Salman Arshad (EE-063) Ammar Mulla (EE-013) Umer Aslam (EE-030)

description

lab report circuit theory

Transcript of Pre Lab 2

Circuit Theory LabGroup members:Ammad Azam (EE-008)Abdul Moiz (EE-019)Syed Muhammad Uzair Ali (EE-015)Salman Arshad (EE-063)Ammar Mulla (EE-013)Umer Aslam (EE-030)

PRE LAB # 2Objective

Using MATLAB, Plot instantaneous voltage, current & power for R, L, C & mixed loads; Calculate real power and power factor for single phase loads; Phasor Analysis.

Pre-Study Questions1. Can we specify the color and symbol through plot command? If yes then give examples.We can specify the color and symbol by using plot command. The syntax of the command will be changed and another input i.e. color or symbol must be added in the syntax.Examples:In plot commandplot(x, y);If we have to define the color as green and symbol as dotted line, we would write:plot(x, y,'g:');There is a list of color codes which define different colors and symbols2. How is time array initiated?We can define the time array as follows:T=a:b:c; where a is the initial point, b is the step size and c is the final point.3. What is Eulers formula?Eulers formula: eix=cosx+isinx4. Write the function of following commands:i. Angle() Returns the phase angle of any complex number. The angle lies + and .ii. Abs()Returns the magnitude of a complex number.iii. .*Used to multiply two vectors or arrays.iv. Inv()Used to calculate the inverse of a matrix.v. Hold onFreezes current plotvi. Grid onDisplays gridlines.vii. Fprintf Allows to write information on the screen for the user to view.viii. %fIt specifies the notation of the output as a floating point ix. \nUsed to insert a new line.x. Display Displays contents of an array or string.