www.pudn.com > matlab8.zip > fcpp.m


function fcpp(fun) 
%#function SAA				%被泛函调用函数的编译注记是必须的。 
fun='SAA';					%对泛函指令中第一输入宗量具体化也是必须的。 
xs=1; 
x=fmins(fun,xs); 
y=feval(fun,x); 
disp(blanks(2)') 
disp('独立外部程序 fcpp.exe 运行结果显示') 
disp(blanks(2)') 
ss=['sin(exp(0.6x))/x 函数在 x = ' num2str(xs) ' 附近达最小值的坐标为   ']; 
disp(ss); 
disp(blanks(1)'); 
disp(['		(' num2str(x) ',' num2str(y) ')'])