Find functions fiatan and atan, Simulation in MATLAB

Assignment Help:

The phase, θ, of a complex number z, is of course determined as follows knowing its real and imaginary parts:

θ = tan-1 imag(z)/real(z)

(1) Your first task is to create a function as follows to return the phase of the complex number in degrees by copying and completing the function in the text below:

function theta = phase1(z)

% Function to be inserted here

end

You should be able to understand how to implement a function from the exercises you have learned in the labs. To also help in implementing the function you should consider the following points:

_ In MATLAB you will find there are two functions fiatan and atan2. Which one should you use in your function? Use the help command to assist you.

_ What if the user enters a complex number that has a phase of 90o or 90o. How can the function be made to work?

_ Think about how to comment the code of the function such that when someone enters help phase, it will tell them exactly what they need to do. This should be your own original writing.

_ What happens if the input is real? Does the function still work?

_ Think about a set of complex numbers you can use to validate your function.

When you are satisfied your function is working and have commented it appropriately, re-name your _file according to the following specification and then submit the program to both ULearn and Turnitin web sites.

NOTE 1: The name of the submitted file MUST be proceeded with your surname and initial followed by the name of the program. For example, if your surname is "Brown", and your first name is "Peter", you need to name the file as follows:

BROWNP_phase1.m

The first part is your surname and initial followed by a hyphen, and then followed by the original filename (phase1.m). If you also have middle names, ignore them in the file name. If your files do not follow this name specification, as a penalty, 10 percent will be deducted from your final mark.

Please use your university username and password (the same username and password that you use to access your university email and computers in the campus) to login to ULearn. Once you login to ULearn, you will be able to see the links to Programming(EEE1015) - Spring Semester 2010-11 on your My ULearn Homepage. Click this link, and submit your assignment to the folder phase1.

NOTE 2: Also submit your program (named according to NOTE 1) to Turnitin, which can be accessed via the following web site:


Related Discussions:- Find functions fiatan and atan

Pulse generator, hw to provide pulses to the pulse generator by seeing the ...

hw to provide pulses to the pulse generator by seeing the gating wave forms ?

Function, Let f(x) = 2x^3-4 x+1 . Match output left number time output occu...

Let f(x) = 2x^3-4 x+1 . Match output left number time output occurs input values x -3 3. Graph calculator windows county times.

Quantize the audio samples, Using the audiorecorder() function in MATLAB, m...

Using the audiorecorder() function in MATLAB, make a recording of your voice. Use a sample rate of 8kHz, 16 bits per sample, and aim to record around 2 seconds worth. Quantize t

Algebra, The sum of 3 consecutive even integers is 276. find the integers

The sum of 3 consecutive even integers is 276. find the integers

Double Slit Diffraction, Hi, I was wondering if you are able to provide me...

Hi, I was wondering if you are able to provide me with simulations showing the optical double slit diffraction dependant on some variables such as distance to screen, slit width,

Generating steady state, I would like to get a matlab code that shifts a gi...

I would like to get a matlab code that shifts a given signal by 12.5 ms (to get 80 Hz response) and take the last segment (12.5 ms) and put it in the gap that is made by the shift.

Pulse train, define and plot the mathematical expression for the fourier se...

define and plot the mathematical expression for the fourier series epansion

Program for game of life, THE GAME OF LIFE The "Game of Life" is an ex...

THE GAME OF LIFE The "Game of Life" is an example of a cellular automaton (CA) and was devised by John Conway in 1970. The "Game of Life" is played on a regular grid, with eac

Matlab assignment, Create a Matlab function called question3 which finds th...

Create a Matlab function called question3 which finds the root of an equation numerically by using the following recursive formula: xn+1 = x n – f(x n)/g(x n) , for n =1,2,3,……

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