tProf   = false; 
GetCoords = true;  %     GetCoords - Determine axis coordinates if true.

switch nargin
case 0,            % improfile
    GetProf   = true; 
    GetCoords = false;
    
case 1,            % improfile(n) or improfile('Method')
    if ischar(varargin{1})
        Method = varargin{1}; 
    else 
        N    = varargin{1}; 
        GetN = false; 
    end
    GetProf   = true; 
    GetCoords = false;
    
case 2,            % improfile(n,'method')
    Method    = varargin{2};
    N         = 