Skip to content

Commit

Permalink
update doc and toolbox check
Browse files Browse the repository at this point in the history
  • Loading branch information
dlegland committed Jun 16, 2017
1 parent cce6411 commit fa5186c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/@Table/kmeans.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% GROUPS = kmeans(TAB, K)
% Computes homogenenous groups in the input data table using the k-means
% algorithm.
% Simply a wrapper to the 'kmeans' function from statistics toolbox.
% Simply a wrapper to the 'kmeans' function from the statistics toolbox.
%
%
% Example
Expand All @@ -13,20 +13,20 @@
% scatterGroup(iris(:,3), iris(:,4), res);
%
% See also
%
%
% scatterGroup, aggregate

% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% e-mail: david.legland@inra.fr
% Created: 2012-11-15, using Matlab 7.9.0.529 (R2009b)
% Copyright 2012 INRA - Cepia Software Platform.


%% Input checks

% check presence of stats toolbox
if isempty(strfind(path, [fullfile('toolbox', 'stats') ';']))
error('Requires the statistcs toolbox');
if isempty(strfind(path, fullfile('toolbox', 'stats')))
error('Requires the statistics toolbox');
end

% pre-process input arguments to transform to double whe required
Expand Down

0 comments on commit fa5186c

Please sign in to comment.