Polar form, MATLAB in Mathematics

Assignment Help:

Polar Form:

Any complex number z = a + bi can be thought of as a point (a,b) or vector in the complex plane in which the horizontal axis is the real part of z, and the vertical axis is an imaginary part of z. Therefore, a and b are the Cartesian or rectangular coordinates. As a vector can be presented by either it's rectangular or polar coordinates, a complex number can be given also by its polar coordinates r and θ, here r is the magnitude of the vector and θ is an angle.

To convert from the polar coordinates into the rectangular coordinates:

a = r cos θ

b = r sin θ

To convert from the rectangular into polar coordinates:

1607_polor form.png

Therefore, a complex number z = a + bi can be written as r cos θ + (r sin θ )i, or z = r (cos θ  + i sin θ )

As ei θ = cos θ + i sin θ , a complex number can also be written as z = rei θ. In MATLAB, r can be found by using the abs function, and there is a special built-in function to find θ, known as angle.

>> z1 = 3 + 4i;

r = abs(z1)

r =

   5

>> theta = angle(z1)

theta =

   0.9273

>> r*exp(i*theta)

ans =

   3.0000 + 4.0000i


Related Discussions:- Polar form

User input in the while loop - program, User input in the while loop: ...

User input in the while loop: Here is an illustration of running this script: >> readonenum Enter a positive number: -5 Invalid! Enter a positive number: -2.2

Error-checking for integers, Error-Checking for Integers: As MATLAB us...

Error-Checking for Integers: As MATLAB uses the type double by default for all the values, to check to make confirm that the user has entered an integer, the program have to c

Complex numbers, Complex numbers: A complex number is commonly written...

Complex numbers: A complex number is commonly written in the form z = a + bi here a is known as the real part of the number z, b be the imaginary part of z, and i is √-1

Plot types - plot functions, Plot types: Besides plot and bar, there a...

Plot types: Besides plot and bar, there are another plot types like stem plots, histograms, stem plots, area plots and pie charts, and also other functions which customize the

Illustration of logical vectors, Illustration of Logical vectors: Call...

Illustration of Logical vectors: Calling the function appears to return similar vector as simply vec > 5, and summing the result still works to determine how many elements wer

Illustration of labels and prompts, Illustration of Labels and prompts: ...

Illustration of Labels and prompts: The program below prompts the user for endpoints (x1, y1) and (x2, y2) of a line segment, and computes the midpoint of the line segment, th

Illustration of writing variables to a file, Illustration of Writing variab...

Illustration of Writing variables to a file: For illustration, in the below session in the Command Window, 3 variables are generated; these are then exhibited using who. Then,

Illustration of writing to files, Illustration of Writing to files: He...

Illustration of Writing to files: Here is the other illustration in which a matrix is written to a file. At First, an arbitrary 2 × 4 matrix is generated, and then it is writt

Nested if-else statements, Nested IF-ELSE statements: The if-else stat...

Nested IF-ELSE statements: The if-else statement is used to select between the two statements. In order to select from more than two statements, the if-else statements can als

Use of string variables, Use of string variables: The Characters invol...

Use of string variables: The Characters involve letters of the alphabet, punctuation marks, digits, white space, and control characters. The Control characters are characters

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd