Question: In this problem you can use the function min. Suppose that we want to find the minimum of a function f ( x ) ,

In this problem you can use the function min. Suppose that we want to find the minimum of a
function f(x), with xin[a,b].
(a) Write a MATL B function, called minBasic.m, that takes a and b as input and returns
the minimum value of the function f(x)=x2. Also write how you would call the function
at the command prompt.
(b) Write a M TL B function, called minFunction.m, that would return the minimum value
for any function f(x) defined at the prompt. Also write how you would call the function
at the command prompt in the case where the function you want to find the minimum of
is f(x)=sin(x).
In this problem you can use the function min.

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