Octave containers.Map()未定义

Joh*_*ohn 4 octave

我需要使用containers.Map()将一些MATLAB代码转换为Octave.我在GNU Octave bug跟踪器#49559中看到containers.Map()已经实现,但是error: 'containers' undefined当我尝试使用它时我仍然会得到它.此功能是否在当前版本的构建中可用,如果是,我该如何访问它?

And*_*ndy 7

由于新功能是以.m文件编写的,因此您只需下载该文件并将其插入到现有的4.2.x安装中即可.

你没有提到你是否在GNU/Linux或windoze上使用GNU Octave所以我在这里假设GNU/Linux:

voilá,地图在OCtave 4.2.1:

octave:1> ver
GNU Octave Version: 4.2.1
...
octave:2> containers.Map
ans =

  containers.Map object with properties:

    Count     : 0
    KeyType   : char
    ValueType : any
Run Code Online (Sandbox Code Playgroud)