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 16:30
In the diagram of circle a what is m
Answers: 1
question
Mathematics, 21.06.2019 18:00
You spin the spinner shown below once. each sector shown has an equal area. what is p(beaver ) p(beaver)? if necessary, round your answer to 2 2 decimal places.
Answers: 2
question
Mathematics, 21.06.2019 21:30
Jude is making cement for a driveway. the instructions show the amount of each ingredient to make 1 batch of cement. complete each statement to adjust the ingredients for each new situation if jude uses these instructions.
Answers: 3
question
Mathematics, 22.06.2019 00:30
Which number can each term of the equation be multiplied by to eliminate the decimals before solving? 5.6j- 0.12=4+1.1j
Answers: 3
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, 11.06.2021 20:10
question
Mathematics, 11.06.2021 20:10
question
Mathematics, 11.06.2021 20:10
question
Geography, 11.06.2021 20:10
question
Physics, 11.06.2021 20:10
question
Mathematics, 11.06.2021 20:10
question
Mathematics, 11.06.2021 20:10