Question: Suppose we have vector temp = [ 70 75 72 68 70 71 73 ] that records the temperatures over seven days. Write a for-loop

Suppose we have vector temp = [ 70 75 72 68 70 71 73 ] that records the temperatures over seven days. Write a for-loop that shows the days of the week and the temperature values as follows: The temperature on Monday is 70 degrees The temperature on Tuesday is 75 degrees The temperature on Wednesday is 72 degrees The temperature on Thursday is 68 degrees The temperature on Friday is 70 degrees The temperature on Saturday is 71 degrees The temperature on Sunday is 73 degrees [Note: to show the days of the week, you'll have to create a cell array of strings]

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 Physics Questions!