ENGR 102 University of Arizona College MATLAB Questions Create a separate function file for each of the following problems. You must include an appropriate H1-line and Help-text with each function. Spring 2019

ENGR 102: Engineering Problem Solving II

MATLAB Homework #: Custom Functions

Required Homework

Create a separate function file for each of the following problems. You must include an

appropriate H1-line and Help-text with each function. Submit your files (Script file and

function files) to eCampus by DayofWeek, Month, Day, Year at 00:00 AM/PM.

1. Write a user-defined function for the following math function:

( ) = 5 cos(2 ( ))

The input to the function is θ in radians and the output is r.

2. The quadratic formula is defined as:

=

− ± √ 2 − 4

2

Where, 2 + + = 0

Write a MATLAB user-defined function that computes the values for x when the values of a, b and c

are known. The inputs should be a, b and c and the output should be x.

3. The equation for Body Mass Index is:

=

ℎ

∗ 703

ℎ 2

Where Weight is in pounds and Height is in inches. Write a MATLAB user-defined function that

computes the value for BMI when Weight and Height are used as inputs.

4. The equation for the area of a circle is = 2. Create a user-defined function that calculates the

area of a circle as a function of its radius. The function should display the result in the command

window as

The area of a circle with radius XXXX is XXXXX.

5. Newton’s method is an iterative method used to find the roots of complicated functions. It is defined

as:

Spring 2019

1 = 0 −

( 0 )

′ ( 0 )

Where 0 is the user’s initial guess for the root of the function. Create a user-defined function to

calculate the value of 1 given ( ) = 2 − 5, and 0 = 2. Where x1 is the output and x0 is the input of

the function.

Purchase answer to see full

attachment

Don't use plagiarized sources. Get Your Custom Essay on

ENGR 102 University of Arizona College MATLAB Questions Create a separate function file for each of the following problems. You must include an appropriate

Just from $13/Page

The price is based on these factors:

Academic level

Number of pages

Urgency

Basic features

- Free title page and bibliography
- Unlimited revisions
- Plagiarism-free guarantee
- Money-back guarantee
- 24/7 support

On-demand options

- Writer’s samples
- Part-by-part delivery
- Overnight delivery
- Copies of used sources
- Expert Proofreading

Paper format

- 275 words per page
- 12 pt Arial/Times New Roman
- Double line spacing
- Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Delivering a high-quality product at a reasonable price is not enough anymore.

That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.