blob: b698b1caee6cc56c6d1b1b2e968c03cd8fc2d223 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Checking exponential function
function y = fun(x)
y = exp(x);
endfunction
x1 = [-1000];
x2 = [1000];
intcon=[1]
[xopt,fopt,exitflag,output,lambda] = intfminbnd (fun, intcon, x1, x2);
// Optimal Solution Found.
|