Question: 1.MATHLAB has a build in function called max. Enter x = [4 -3 8 5 -12 6 0 1] and then enter M = max(x)

1.MATHLAB has a build in function called max. Enter

x = [4 -3 8 5 -12 6 0 1]

and then enter

M = max(x)

What if, in addition to finding the max value in a list of numbers, we also want to know where the max occurs? look up the help documentation for the max command, and find out what command will allow us to write the max value into a variable called M and the location of the max into a variable called I (for index). Script?

2. I am going to record the temperature every half hour for the next 12 hours. I want an evenly spaced array t for time that starts at 0, ends at 12, and has a spacing of 0.5. Produce the time vector. Script?

3. I want to divide the interval [0,3] into 10 evenly spaced bins in order to make a histogram for something or other. Use a built in function to create an array with this propoerty and save it as the variable h. Script?

(please write all answers in a MATLAB form, and separate the answers clearly)

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