Question: ***********************ONLY NEED MATLAB CODE********************************* **************BELOW IS THE HW1 IT IS TALKING ABOUT************************ a. Write a code in MATLAB to solve Homework 1. HINTS: (i) Define

***********************ONLY NEED MATLAB CODE*********************************

***********************ONLY NEED MATLAB CODE********************************* **************BELOW IS THE HW1 IT IS TALKING ABOUT************************

**************BELOW IS THE HW1 IT IS TALKING ABOUT************************

a. Write a code in MATLAB to solve Homework 1. HINTS: (i)

a. Write a code in MATLAB to solve Homework 1. HINTS: (i) Define clearly your parameters (line impedance, load impedance and voltage source). (ii) Calculate line currents by solving a matrix equation (50 pts) b. Improve the code above by printing on the screen the results for line currents (25 pts). Use the command fprintf. For example, in the hypothetical case that the line currents are 1,-1020, 1,-10L-120 and -1021209, then the screen message should look like: The line current in phase a is 10 amps and 0 degrees The line current in phase b is 10 amps and -120 degrees The line current in phase c is 10 amps and 120 degrees If the load impedance has a different value, for example Z = 120+550 /phase, the printout on the screen must automatically show the right values in terms of magnitude and angle for all line currents. Remember you can obtain a description of fprintf by typing help fprintf in the MATLAB workspace. c. Using the code draw_phasor (this has been uploaded to Canvas), write a code to draw the voltage phasor diagram of the equivalent voltages per-phase, i.e., the phasor diagram must describe the following equation Va-jX+Va; you must include the current Ia in the drawing as well (25 pts) Note 1: You must turn-in a hard copy with your solution. Printout your code and your plots. Note 2: Send an email to the TA by the due date attaching your code. For the electric circuit of the figure, you are asked to a. Solve for Va', Vy and Ve using "mesh current method" b. Calculate the total active and reactive power produced by the generator c. Calculate the active and reactive power absorbed by the transmission line d. Using the numerical results from parts b and c, calculate the active and reactive power absorbed by the load Fa.J XL Vea Vab 12e'i kV/phase be 12e kV/phase Vab 12 W/phase XL-30 /phase -130+545 /phase a. Write a code in MATLAB to solve Homework 1. HINTS: (i) Define clearly your parameters (line impedance, load impedance and voltage source). (ii) Calculate line currents by solving a matrix equation (50 pts) b. Improve the code above by printing on the screen the results for line currents (25 pts). Use the command fprintf. For example, in the hypothetical case that the line currents are 1,-1020, 1,-10L-120 and -1021209, then the screen message should look like: The line current in phase a is 10 amps and 0 degrees The line current in phase b is 10 amps and -120 degrees The line current in phase c is 10 amps and 120 degrees If the load impedance has a different value, for example Z = 120+550 /phase, the printout on the screen must automatically show the right values in terms of magnitude and angle for all line currents. Remember you can obtain a description of fprintf by typing help fprintf in the MATLAB workspace. c. Using the code draw_phasor (this has been uploaded to Canvas), write a code to draw the voltage phasor diagram of the equivalent voltages per-phase, i.e., the phasor diagram must describe the following equation Va-jX+Va; you must include the current Ia in the drawing as well (25 pts) Note 1: You must turn-in a hard copy with your solution. Printout your code and your plots. Note 2: Send an email to the TA by the due date attaching your code. For the electric circuit of the figure, you are asked to a. Solve for Va', Vy and Ve using "mesh current method" b. Calculate the total active and reactive power produced by the generator c. Calculate the active and reactive power absorbed by the transmission line d. Using the numerical results from parts b and c, calculate the active and reactive power absorbed by the load Fa.J XL Vea Vab 12e'i kV/phase be 12e kV/phase Vab 12 W/phase XL-30 /phase -130+545 /phase

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!