Vah*_*ili 2 matlab octave euclidean-distance
八度文档说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"
Run Code Online (Sandbox Code Playgroud)
我需要为它安装任何软件包吗?
回复后:我试图安装统计包:
octave:1> pkg install -forge statistics
error: the following dependencies where unsatisfied:
statistics needs io >= 1.0.18
Run Code Online (Sandbox Code Playgroud)
是.您需要安装统计信息包.如果查看此处的函数列表,则可以看到函数所属的包.
编辑:该错误消息说明了一切.统计包依赖于io包.只需安装它,就像安装统计包一样.
pkg install -forge io
Run Code Online (Sandbox Code Playgroud)
问题是io包本身可能依赖于其他包,因此建议使用包管理器来处理这类内容(Octave's pkg尚未自动解决依赖关系,尽管有些工作正在进行中).由于您使用的是Ubuntu,只要您没有自己构建Octave,只需从其存储库安装该版本:
apt-get install octave-statistics
Run Code Online (Sandbox Code Playgroud)
另一种方法是告诉pkg忽略依赖关系并强制安装(如果统计包的某些部分以后无法正常工作,请不要感到惊讶:
pkg install -forge -nodeps statistics
Run Code Online (Sandbox Code Playgroud)