Question: MATHLAB PROJECT NOTE: This project has a strict style restriction. Your code below is not allow to use any array operations. This means you cannot

MATHLAB PROJECT
NOTE: This project has a strict style restriction. Your code below is not allow to use any array operations. This means you cannot call built in functions like sum, find, or anything else. If you aren't sure if a particular built in function is allowed, please ask, don't assume. This code muse be written by using loops and if statements. All operations/accesses/definitions should be scalar. This will be checked manually. If array operations, or built in functions are used, then the score will be 0.
For this project you are going to write a function project4 that takes an array of temperatures as input and returns the number of values in the array as output.
In addition your function will:
1. Plot the temperatures - Create a plot of the temperatures. Customize the plot so that the data is easy to read. The default plot customization is a solid blue (ish) line with a linewidth of 0.5. Your customization must change the default color, increase the linewidth, and customize the line and marker style to something of your choice (but different from the default).
NOTE: You are allowed to call the plot function (and xlabel, ylabel, etc.) to produce this plot.
NOTE: This part is worth 20 points but is not autograded. Total points on the autograder is 60 points testing part 2.
2. Count how many temperatures are cold, comfortable and hot - Next, write the code that counts how many values in the temps array are cold (less than or equal to 40 degrees F), how many values in temps array are comfortable (greater than 40 and less than 75 degrees F), and how many values in temps array are hot (greater than or equal to 75 degrees F). Create a second subplot in the same figure or open a new figure or use subplot (your choice which you do), and inside it create a bar graph that visualizes your results. Here is an example of what it should look like if the values in the input array were: [234547899]. You can use the help and search "bar" to see how to create a bar graph like this. The documentation is great. You will need to use bar (to make plot) and categorical (to label plot).
NOTE: You are allowed to call the categorical function and the bar function in order to create this graph.
MATHLAB PLZ
MATHLAB PROJECT NOTE: This project has a strict

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!