MATLAB fmincon to excel

cab0008

New Member
Joined
Jun 29, 2010
Messages
5
Hello everyone,

I was wondering if anyone understood the matlab fmincon function well enough to have the same function done in excel (for just 2 parameters).

My problem is the following:

I have a spectrum in excel and i need to make a baseline underneath this that follows the trends of the spectrum.
I know that fmincon works well for this problem because other people have uesd it, but I want to have the steps understood so I can have this data in excel format to go with a vba macro I've created.

This is what the explaination they give is:

x = fmincon(fun,x0,A,b) starts at x0 and attempts to find a minimizer x of the function described in fun subject to the linear inequalities A*x ≤ b. x0 can be a scalar, vector, or matrix.

How exactly does it ""attempt to find a minimizer"? is this a loop or what? and how would I put this into excel?

Any help is appreciated
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,225,516
Messages
6,185,438
Members
453,289
Latest member
ALPOINT_AIG

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top