From fa5186ce63082ed0e1db07e3899d79663cb45aa5 Mon Sep 17 00:00:00 2001 From: dlegland Date: Fri, 16 Jun 2017 17:00:23 +0200 Subject: [PATCH] update doc and toolbox check --- src/@Table/kmeans.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/@Table/kmeans.m b/src/@Table/kmeans.m index 438d911..4bbddc2 100644 --- a/src/@Table/kmeans.m +++ b/src/@Table/kmeans.m @@ -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 @@ -13,11 +13,11 @@ % 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. @@ -25,8 +25,8 @@ %% 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