160 likes | 485 Views
EGR 272 – Complex Numbers and AC Circuits using MATLAB. Complex Numbers in MATLAB We will begin this section by looking at several useful functions in MATLAB related to complex numbers. Useful functions in MATLAB related to complex numbers.
E N D
EGR 272 – Complex Numbers and AC Circuits using MATLAB Complex Numbers in MATLAB We will begin this section by looking at several useful functions in MATLAB related to complex numbers. Useful functions in MATLAB related to complex numbers
EGR 272 – Complex Numbers and AC Circuits using MATLAB Useful functions in MATLAB related to complex numbers
EGR 272 – Complex Numbers and AC Circuits using MATLAB Useful operations in MATLAB related to complex numbers
EGR 272 – Complex Numbers and AC Circuits using MATLAB Printing Complex Numbers in MATLAB Some options for printing complex numbers in MATLAB include: Do not suppress printing and accept the default format (rectangular form): Display using fprintf (not perfect, but may be sufficient in some cases)
EGR 272 – Complex Numbers and AC Circuits using MATLAB Printing Complex Numbers in MATLAB Some options for printing complex numbers in MATLAB include: Convert complex number to a string using num2str( ) and print using %s:
EGR 272 – Complex Numbers and AC Circuits using MATLAB 6 Application of Complex Numbers: AC Circuit Analysis (Phasor Analysis) AC Circuit Analysis Procedure: 1) Draw the phasor circuit (showing voltage and current sources as phasors and using complex impedances for the components). 2) Analyze the circuit in the same way that you might analyze a DC circuit. 3) Convert the final phasor result back to the time domain. Example: Use the total current using phasor analysis by hand. Solution: See next slide
EGR 272 – Complex Numbers and AC Circuits using MATLAB Solution: phasor circuit: I j20 10 30 -j25 -j50 500 V
EGR 272 – Complex Numbers and AC Circuits using MATLAB Example: Use MATLAB to solve for the total phasor current.