% Program to create a binary file to contain parameters
% and get the default parameters
% for matlab program:                 nlsolve
% *************************************************************
% - if input argument list is empty:
%      get the defaults as output parameters!
% - if there is ONE dummy input argument:
%      write the binary parameter file BEFORE the matlab 
%      programs will be installed !!!
% *************************************************************
%
% Name:               init_para_nlsolve
%                     -----------------
% Stand:              23.6.03/sw
%
% creates the
% binary file:        parameter_nlsolve.mat      
% original
% parameters are:     max_of_count=10
%                     max_of_bigcount=20
%                     fak_min=0.3   (control of speed of iteration)
%                     lambda=1
% -----------------------------------------------------------------------
function [max_of_count,max_of_bigcount,fak_min,lambda]...
        = init_para_nlsolve(varargin)

max_of_count=10;
max_of_bigcount=20;
fak_min=0.3;
lambda=1;

% Save the parameters to a binary file (if varargin contains any dummy
% variable).
% Attention: The "save" command MUST quote the parameter names explicitly!
% ---------- Otherwise "varargin" would be stored,too. This will lead to 
%            errors when a calling program is also using varargin!!!
%
if(nargin >0 )
   save parameter_nlsolve ...
   max_of_count max_of_bigcount fak_min lambda;
end;

