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
How far could you drive on 50 gallons of gas
Answers: 2
question
Mathematics, 21.06.2019 23:00
Graph the system of equations. {6x−4y=−244x−8y=−32 use the line tool to graph the lines.
Answers: 1
question
Mathematics, 22.06.2019 00:00
Define the type of sequence below. 7, 14, 28, 56, 112, a. neither arithmetic nor geometric b. arithmetic c. both arithmetic and geometric d. geometric
Answers: 1
question
Mathematics, 22.06.2019 00:00
The equation of line wx is y=2x-5. write an equation of a line perpendicular to line wx in slopeintercept form the contains points (-1,-2)
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
Mathematics, 30.06.2019 12:10
question
Mathematics, 30.06.2019 12:10
Questions on the website: 13722363