function [fvec,J] = gulf(n,m,x,opt) % *************************************************** % *************************************************** % function [fvec, J]= gulf(n,m,x,opt) % Gulf research and development function [11] % Dimensions n=3, n== zero) J(i,2) = d2 * ei; else J(i,2) = -d2 * ei; end J(i,3) = d3 * ei; else J='?'; end end; fvec = fvec'; if((opt<1)|(opt>3)) disp('ERRROR: option value sent to GULF.M is either <1 or >3'); end;