Categories: Excelling Homework

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

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
For $10/Page 0nly
Order Essay
admin

Recent Posts

Economic Debate #3- Progressive Income Tax – The Homework Helper

Economic Debate- Progressive Income Tax For this Economic Debate, we are going to discuss the…

2 years ago

MKT 6120 – Marketing Management – Davis Learning Engagement #7

TOPIC: Going Global Discussion Thread 1 (initial post due Wednesday for full credit) Please note:…

4 years ago

jvjvjhvjhvhjvj

Assignment Topic This week will culminate in the creation of a narrated PowerPoint to create…

4 years ago

Students are supposed to select a technological organization of their choice.

The Assignment must be submitted on Blackboard (WORD format only) via allocated folder. Assignments submitted…

4 years ago

Increases the risk of wildfires

you need to post your 2-page information flier to share with your Final Project Group.…

4 years ago

Statistics for Technology management

discussion: Discuss the methods used at your company to measure and ensure quality products and…

4 years ago