subject
Mathematics, 13.09.2019 17:30 Justsaw44

in this problem, you will be creating the function globalmin that uses matlab to approximate the x and y coordinate of the global minimum of a function within a given domain.
inputs:
func - an arbitrary function. eg. @(x) x.^2 + 4
xstart - the first x value in the function domain
xend - the last x value in the function domain
dx - the x spacing in the function domain.
outputs:
xmin - the x-coordinate of the global minimum of the function within a given domain.
ymin - the global minimum of the function within a given domain.
function template
function [xmin, ymin] = globalmin(func, xstart, xend, dx) %insert code end
test examples
[xmin, xmax] = globalmin(@(x) x.^3/3-x, -1.5, 1.5, 0.01) should return [1 -0.6667].
but [xmin, xmax] = globalmin(@(x) x.^3/3-x, -3, 3, 0.01) should return [-3 -6].

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 18:30
For this option, you will work individually. the pythagorean theorem can be used in many real-world scenarios. part 1 write your own real-world scenario where the pythagorean theorem can be applied to find a missing piece. you may choose to write a problem that is two- or three-dimensional in nature. be sure that you will be able to draw a diagram of your scenario. write out your problem and submit it for part 1. be sure to end your scenario with a question. part 2 draw a diagram of the scenario you created in part 1. you may draw by hand and scan and upload your drawing or create a computer-generated drawing for submission. be sure to label all parts and dimensions of the drawing. part 3 solve the question that you posed in part 1. show all of your steps in answering the question. for this option, you will need to submit all three parts for full credit—your real-world problem and question, the diagram that you created, and your work solving the problem, showing all steps. * note that your instructor is looking for your own original idea. while it is acceptable to use the internet for research and inspiration, academic integrity policies apply.
Answers: 1
question
Mathematics, 22.06.2019 04:00
Ineed ! what is the connection between ratios, fractions, and percents? give an example with your answer.
Answers: 2
question
Mathematics, 22.06.2019 07:30
Acookie manufacturer advertised that every bag of a certain type of cookie contained at least 1000 chocolate chips. a consumer group bought 15 bags of cookies from a variety of locations, dissolved the cookies in water and hand-counted the number of chocolate chips in each bag. the average number of chocolate chips was 1161.6 and the standard deviation 117.6. a26. assuming a normal distribution, a 95% confidence interval for the mean number of cookies in each bag is (a) 1108.37 (b) 1108.13 (c) 1102.09 (d) 1096.86 to 1226.34 to 1214.83 to 1215.07 to 1221.11 (e) 1096.47 to 1226.73
Answers: 3
question
Mathematics, 22.06.2019 11:10
The 54 students in one of several middle school classrooms were asked two questions about musical preferences: “do you like rock? ” “do you like rap? ” the responses are summarized in the table below.
Answers: 2
You know the right answer?
in this problem, you will be creating the function globalmin that uses matlab to approximate the x a...
Questions
question
Chemistry, 01.07.2020 15:01
Questions on the website: 13722363