blob: f87576311966f8c1939c6ac81cc803d9465c6b80 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Testing square root function
function y = fun(x)
y = sqrt(x*x);
endfunction
x1 = [100];
x2 = [500];
intcon=[1];
[xopt,fopt,exitflag,output,lambda] = intfminbnd (fun, intcon, x1, x2);
// Optimal Solution Found.
|