Question

Question 4 Use MATLABs built in function fminbnd() to solve for the optimum of the following one-dimensional functions: Not

thumbs up for correct

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANSWERS-

1. F(xmin)= -24.5

2. F(xmax)= 43.597

MATLAB CODE-------------------#####

disp('Minimum of function')
Fun=@(x) (8*x^2-28*x)
[xmin,Fxmin]=fminbnd(Fun,0.5,2.5)

fprintf('\nTo find maximum of function')
f=@(x1) (-(5*x-((x-5)^2)/3))
[x1,fval1]=fminbnd(f,8,18);

xmax=11.820
Fxmax=5*d-0.3333*(d-5)*(d-5)

RESULTS-----------------------------------------------------######

Minimum of function
Fun =

@(x) (8 * x ^ 2 - 28 * x)

xmin =  1.7500
Fxmin = -24.500

To find maximum of functionf =

@(x1) (-(5 * x - ((x - 5) ^ 2) / 3))

xmax =  11.820
Fxmax =  43.597
Add a comment
Know the answer?
Add Answer to:
thumbs up for correct Question 4 Use MATLAB's built in function fminbnd() to solve for the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT