Homework, MATLAB Programming

Assignment Help:
-The program should run always until the user enters -1 to exit from the program.
- In the main, you should ask user to input any angles in degrees (Ad) and an integer number (N).
- In the main, you should check that n is a positive integer.
-Write a function (DtoR) to convert any angle from degrees Ad to radian Ar.
-Write function (fact) to calculate the factorial of any number and return the value.
-Write a function (sinus) that accepts two parameters (angle, number of elements), calls any
needed function, and returns the sinus value for Ad. The angles variable Ad could be scalar or
vector.
- In the main, you should call a user defined function (sinus) by passing the angle (Ad) and
number of elements (N) that should be included in the sum.
-In the main, you should print the angle in degrees, the equivalent angle in radians and the sinus
value for this angle.

Related Discussions:- Homework

Function char - characters and encoding, Function char: The function c...

Function char: The function char does the opposite; it converts from any number type to the type char: >> char(numequiv) ans = a As the letters of the alphabet are

Rc phase shift oscillater, design a rc phase shift oscillator for a particu...

design a rc phase shift oscillator for a particular frequency of oscillation and generate a sinusoidal signal

Example of linear indexing, Example of Linear indexing: For illustrati...

Example of Linear indexing: For illustration, the following substitutes the whole second row with values from a vector  The whole row or column could also be changed : >> m

#GUI, #create a matlab GUI for designing common emitter amplifier which pro...

#create a matlab GUI for designing common emitter amplifier which produces AC load lines based on the component values

Recognizing people in video based on their body", I am doing project "Recog...

I am doing project "Recognizing people in video based on their body" the system will use MATLAB to detect people based on thier body and then recognize them from their clothes "us

Calculate sample mean and standard deviation, Make a vector of 500 random n...

Make a vector of 500 random numbers from a normal distribution with mean 2 and standard deviation 5(randn). a After you generate the vector, verify that the sample mean and stan

Assignment`, matlab code for The region bounded by the parabola x2 = y and ...

matlab code for The region bounded by the parabola x2 = y and the line y = x in the first quadrant is rotated about the X-axis to generate a solid. Find the volume of the solid.

Vector-array multiplication in simulink, Statement of Problem I need to...

Statement of Problem I need to realise vector-array multiplication in Simulink. This has been realised in Matlab but because the process yielding the received signal is in Simu

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