Question: Instructions: Solve the following problems in a MATLAB script. You will be allowed to submit only one script, please work all the problems in the

 Instructions: Solve the following problems in a MATLAB script. You willbe allowed to submit only one script, please work all the problems

Instructions: Solve the following problems in a MATLAB script. You will be allowed to submit only one script, please work all the problems in the same script (Hint: careful with variables names) Show your work and make comments in the same script (Use %). Please refer to formatting files previously announced/discussed. P5: Using the information from zybooks (including chapter 10) and in class discussions you have learned, solve the following. Create a way for the code to tell someone what one should wear based on the weather. The variable you are checking for are the temperature, wind and rain are checked against each other at once (hint: logical operators); the temperature is in Fahrenheit from 0-100 degrees, wind speed from 0-60, and the rain is either there or not. Another variable is how the person feels that day (they can feel: good, okay, or bad) is checked. From this, the code will output what to wear. All of the values will be input as one array. See the example below to check how this array would look like. Please split up what a person would do from temperatures and wind speeds by 4 each (ie, 100/4 range of 25). Remember to tell the user the parameters (you can use my example or make it better for explaining to the user what to input) a. b. Good code comments are great (ie, explain these magical numbers for rain or feeling variables next to statements that use them in your solution). Explain how you want to solve the problem briefly in your script comments (ie, if statements, switch statements, logical operators, etc.; it can be a short list or sentence, just give an idea to others of your chosen solution method). Instructions: Solve the following problems in a MATLAB script. You will be allowed to submit only one script, please work all the problems in the same script (Hint: careful with variables names) Show your work and make comments in the same script (Use %). Please refer to formatting files previously announced/discussed. P5: Using the information from zybooks (including chapter 10) and in class discussions you have learned, solve the following. Create a way for the code to tell someone what one should wear based on the weather. The variable you are checking for are the temperature, wind and rain are checked against each other at once (hint: logical operators); the temperature is in Fahrenheit from 0-100 degrees, wind speed from 0-60, and the rain is either there or not. Another variable is how the person feels that day (they can feel: good, okay, or bad) is checked. From this, the code will output what to wear. All of the values will be input as one array. See the example below to check how this array would look like. Please split up what a person would do from temperatures and wind speeds by 4 each (ie, 100/4 range of 25). Remember to tell the user the parameters (you can use my example or make it better for explaining to the user what to input) a. b. Good code comments are great (ie, explain these magical numbers for rain or feeling variables next to statements that use them in your solution). Explain how you want to solve the problem briefly in your script comments (ie, if statements, switch statements, logical operators, etc.; it can be a short list or sentence, just give an idea to others of your chosen solution method)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Certainly Below is a sample MATLAB script that implements the problem you described Please insert this into a new script file in MATLAB matlab Weather... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!