Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. 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

1. 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?
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. 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?
(please write all answers in a MATHLAB form)

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions