From bug-octave-request at che dot utexas dot edu Thu Sep 8 02:09:02 1994 Subject: problem with skewness and kurtosis From: pcasta at auto dot emn dot fr (Castagliola Philippe 40448375) To: bug-octave at che dot utexas dot edu Date: Thu, 8 Sep 1994 08:08:17 +0100 (BST) Here is a sample octave input Octave, version 1.0. Copyright (C) 1992, 1993, 1994 John W. Eaton. This is free software with ABSOLUTELY NO WARRANTY. For details, type `warranty'. octave:1> rand('normal'); octave:2> v=rand(100,1); octave:3> skewness(v) warning: division by zero ans = -Inf octave:4> kurtosis(v) warning: division by zero ans = Inf octave:5> If you take a look to skewness.m and kurtosis.m, you can see [nr, nc] = size (x); if (nr == 1 || nc == 1) n = max (nr, nc); <--------------------- here is the error If x is a vector (row or column), then n always equal to one ! n = max([nr, nc]) will be better, isn't it ? CASTAGLIOLA Philippe Ecole des Mines de Nantes pcasta at auto dot emn dot fr