Matlab 倍频程pdist(成对距离)

Matlab 倍频程pdist(成对距离),matlab,octave,euclidean-distance,Matlab,Octave,Euclidean Distance,octave文档说pdist存在,但我不能在安装在ubuntu 12.04上的版本中使用它 八度版本: GNU Octave, version 3.6.2 Copyright (C) 2012 John W. Eaton and others. This is free software; see the source code for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILIT

octave文档说pdist存在,但我不能在安装在ubuntu 12.04上的版本中使用它

八度版本:

GNU Octave, version 3.6.2
Copyright (C) 2012 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "x86_64-pc-linux-gnu"
我需要为它安装任何软件包吗

答复后: 我尝试安装统计数据包:

octave:1> pkg install -forge statistics
error: the following dependencies where unsatisfied:
   statistics needs io >= 1.0.18

对。您需要安装统计数据包。如果查看函数列表,可以看到函数所属的包

编辑:该错误消息不言自明。统计数据包依赖于io包。只需安装它,就像安装统计数据包一样

pkg install -forge io
问题是io包可能依赖于其他包本身,因此建议使用包管理器来处理这类内容(Octave的
pkg
尚未自动解决依赖关系,尽管一些工作正在进行中)。由于您使用的是Ubuntu,只要您没有自己构建Octave,就可以从他们的存储库中安装该版本:

apt-get install octave-statistics
另一种方法是告诉
pkg
忽略依赖项并强制安装(如果统计数据包的某些部分以后无法正常工作,请不要感到惊讶:

pkg install -forge -nodeps statistics

octave:1>pkg安装-forge statistics错误:未满足以下依赖项:统计需要io>=1.0.18