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

Create a model or spreadsheet in matlab, The pressure radiated by a column ...

The pressure radiated by a column of in-phase monopole sources may be expressed as: Create a model (spreadsheet / MATLAB etc) for a 6 element column, where d=0.2m . Figure

Find the value of delta equation, Solve the optimality condition for each P...

Solve the optimality condition for each P equation against M according to the following relation: Condition for Optimality:         ∇ M = λ ∇ P      with respect to C and T.

Matlab cubic eqn, how can i model this eqn: solve n plot x vs v x^3-2x^2+x...

how can i model this eqn: solve n plot x vs v x^3-2x^2+x=v^2(.532*10^-3) by putting v=0 to 20 and find the change in x

How to start working with simpower, How to Start Working withSimpower: ...

How to Start Working withSimpower: 1. In the Simulink screen, open a new "Model" (File àNewà Model), name it and save it. 2. Expand the SimPowerSystems library, select and

DC Motor, I need assignment to finish.

I need assignment to finish.

Calculate power system blockset model, For the 66kV subtransmission network...

For the 66kV subtransmission network shown below, calculate the following, using a MATLAB Simulink Power System Blockset model: 1. Three phase, phase-to-phase and phase-to-earth

Program that perform k nearest neighbours algorithm, 1) Convert the table i...

1) Convert the table into format convenient for the processing with MATLAB. 2) Prepare a program that perform K Nearest Neighbours algorithm using Euclidian distance. (Your prog

Illustration of for loop, illustration of for loop: illustration, to p...

illustration of for loop: illustration, to print a column of numbers from 1 to 5: for i = 1:5 fprintf('%d\n',i) end   This loop can be entered in the Command Wi

Create matlab program, Create MATLAB program(s) that solve a problem of you...

Create MATLAB program(s) that solve a problem of your own choice. You may opt to solve work related problem, an industrial problem, or problem from your research project. Markin

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