Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A) I am trying to find the minimum value of the function f and i dont know what I am doing wrong. The following is

A) I am trying to find the minimum value of the function f and i dont know what I am doing wrong. The following is what i input into Matlab:

image text in transcribed

B) How would I also have the area under the curve in Matlab [-10 10] ?

>> f f = function handle with value: @(x)4*.^2-50*X+5 >> options = optimset('display','off', 'Algorithm', 'active-set'); >> [xmin] = fmincon (f, [6 -130],[],[],[],[], [-10 -10], [10 10], [], options) Error using fmincon (line 619) Supplied objective function must return a scalar value. >> f f = function handle with value: @(x)4*.^2-50*X+5 >> options = optimset('display','off', 'Algorithm', 'active-set'); >> [xmin] = fmincon (f, [6 -130],[],[],[],[], [-10 -10], [10 10], [], options) Error using fmincon (line 619) Supplied objective function must return a scalar value

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago