Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab, confused help is greatly appreciated Submit to Canvas (3) m-files for the following functions. You will have to name the file exactly as described

Matlab, confused help is greatly appreciated image text in transcribed
image text in transcribed
Submit to Canvas (3) m-files for the following functions. You will have to name the file exactly as described in the problem. Points will be deduced for incorrect file names and not commenting your functions appropriately (comments will be displayed when you ask for help on your function listing the usual file header and information about the inputs and outputs)! We know a thermometer tells us the ambient temperature. However, we also know that depending on other conditions, like humidity or wind velocity, the "feels like" temperature will be different. The wind chill temperature, Twc(in "F), is the temperature you feel on your exposed skin when it is cold. 1. The equation for wind chill temperature is given by: Tmc = 35.74 + 0.6215 . Ta-35.75-v0.16 + 0.4275 . Ta . U0.16 Where Ta is ambient temperature in F and v is the wind speed in miles/hour Write an m-file function with two inputs and one output for the "feels like temperature". The function should be named "feels like.m. The first input to the function needs to be temperature (in "F) and the second needs to be wind speed (in mph). The m-file should then calculate the wind chill temperature and the difference between the ambient temperature and the wind chill temperature. It should only return (output) the feels like temperature. Using the fprintf command, the function should output the text shown in Figure 1 when the temperature is 12F and the wind speed is 12 mph. (This is example output and your function should give correct values for other inputs.) The wind chill temperature is-2 degrees F. It feels 14.4 degrees F colder than the temperature Figure 1: Wind Chill Script Input and Output Format Write two m-file functions that will allow you to compare mortgages calculations for the monthly 2. payment and compare mortgage with different loan values. The monthly payment M, is calculated using: 12y Where P is the principal loan amount, ris the interest rate (in decimal form not percent form), and y is the number of years of the loan. Create an m-file function called "mortgage-am" that will serve as a loan calculator (like the ones that you might find on-line). This function will have three inputs and two outputs. The three inputs in order need to be: mortgage amount (in Dollars), years to payoff loan (in years), and interest rate

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions