Skip to content
Snippets Groups Projects
Commit cfb4fcec authored by marwan's avatar marwan
Browse files

fix of intermixed variables in the code

parent c68828c4
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ function out=fnn(varargin) ...@@ -10,7 +10,7 @@ function out=fnn(varargin)
% The defeault is T=1. % The defeault is T=1.
% %
% Y=FNN(X,M,T,R,S), where R and S are scalars, applies the neighbourhood % Y=FNN(X,M,T,R,S), where R and S are scalars, applies the neighbourhood
% criterion R and the size of the neighbourhood S. The defeault is R=2 % criterion R and the size of the neighbourhood S. The defeault is R=10
% and S=Inf. % and S=Inf.
% %
% Y=FNN(X,M,T,R,S,N), where N is a scalar, uses N random samples for % Y=FNN(X,M,T,R,S,N), where N is a scalar, uses N random samples for
...@@ -55,6 +55,9 @@ function out=fnn(varargin) ...@@ -55,6 +55,9 @@ function out=fnn(varargin)
% $Revision$ % $Revision$
% %
% $Log$ % $Log$
% Revision 5.8 2011/05/18 09:46:17 marwan
% default figure background color bug fixed
%
% Revision 5.7 2010/01/15 12:16:58 marwan % Revision 5.7 2010/01/15 12:16:58 marwan
% bug on check of data length % bug on check of data length
% %
...@@ -143,13 +146,13 @@ if nargin & isnumeric(varargin{1}) ...@@ -143,13 +146,13 @@ if nargin & isnumeric(varargin{1})
r = varargin{i_x(3)}; r = varargin{i_x(3)};
case 4 case 4
maxM = varargin{i_x(1)}; maxM = varargin{i_x(1)};
r = varargin{i_x(2)}; t = varargin{i_x(2)};
t = varargin{i_x(3)}; r = varargin{i_x(3)};
s = varargin{i_x(4)}; s = varargin{i_x(4)};
case 5 case 5
maxM = varargin{i_x(1)}; maxM = varargin{i_x(1)};
r = varargin{i_x(2)}; t = varargin{i_x(2)};
t = varargin{i_x(3)}; r = varargin{i_x(3)};
s = varargin{i_x(4)}; s = varargin{i_x(4)};
maxN = varargin{i_x(5)}; maxN = varargin{i_x(5)};
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment