1 / 8

Useful functions in MATLAB related to complex numbers

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.

lonato
Download Presentation

Useful functions in MATLAB related to complex numbers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. EGR 272 – Complex Numbers and AC Circuits using MATLAB Useful functions in MATLAB related to complex numbers

  3. EGR 272 – Complex Numbers and AC Circuits using MATLAB Useful operations in MATLAB related to complex numbers

  4. 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)

  5. 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:

  6. 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

  7. EGR 272 – Complex Numbers and AC Circuits using MATLAB Solution: phasor circuit: I j20 10 30 -j25 -j50 500 V

  8. EGR 272 – Complex Numbers and AC Circuits using MATLAB Example: Use MATLAB to solve for the total phasor current.

More Related