cost 310 ms
python无法从Octave函数解压返回值 - python unable to unpack returned values from Octave function

我在 Octave 中有一个名为 doFFT.m 的函数,定义为: 此函数按预期运行,返回 3 个行向量。 在 Python 中,我导入了 oct2py, 我通过以下方式调用这个 Octave 函数: 我收到一条错误消息,上面写着“ValueError:没有足够的值来解包(预期为 3, ...

Octave 笔记本在 Jupyter 中显示但无法连接到 kernel - Octave notebook shows in Jupyter but can't connect to kernel

我试图通过 Jupyter(Anaconda)(不使用 PIP)使用 Octave,但它不起作用。 最初我能够使用 conda 安装 Octave(图 1在 juoyter 中显示 Octave ,但一直收到错误消息“Octave-cli”未找到。 所以我试着在环境中设置一个路径(图2)试图设置环 ...

Oct2Py plot function 没有响应,也无法更改工具包 - Oct2Py plot function not responding, can't change toolkit either

使用 Linux。 如果我使用 gnuplot 工具包,我可以使用 plot3 octave function 而不会通过命令行冻结图形。 但是,当从 python 运行它时,使用 oct2py 模块,我似乎无法更改工具包,尽管它看起来是可用的,所以 plot3 图形加载但立即冻结。 八度码: p ...

在 Google Colab 中的 *.m (Matlab) 文件上使用 Oct2Py 后“exists_or_mkdir”未定义 - “exists_or_mkdir” undefined after using Oct2Py on *.m (Matlab) file in Google Colab

我一直试图弄清楚如何在 Google Colab 中运行 Matlab 文件。 我已将 Octave ( apt install Octave ) 安装到我的 Colab 中。 但是尝试使用.octave -W make_video.m运行我的.m文件然后才返回 所以我做了!pip3 install ...

Oct2Py 使用 Psychtoolbox function 返回多个 arguments 给出“TypeError: cannot unpack non-iterable float object” - Oct2Py gives “TypeError: cannot unpack non-iterable float object” with Psychtoolbox function returning multiple arguments

我正在使用 Oct2py package 从他们的站点运行一个非常基本的 Psychtoolbox 示例,当我尝试返回两个浮点值时,我遇到了一个问题,它看起来像: 错误发生在第 49 行: 我在网上寻找这个错误的帮助,但我看到的解释很少,没有一个能帮助我。 当我在 Octave 中执行它时,它运行 ...

pyinstaller 使用 oct2py 导入生成可执行错误 - pyinstaller generated executable error with oct2py import

我正在尝试制作一个 python 可执行文件,它使用 oct2py 来评估 .m 文件。 python 脚本独立工作得很好。 我已经成功地使用 pyinstaller 制作了一个可执行文件(使用 --onefile,在构建它时没有错误),但是当我运行这个可执行文件时,我收到以下错误并且可执行文件退 ...

pyinstaller 生成的可执行文件找不到octave_kernel\\\\kernel.json - pyinstaller generated executable cannot find octave_kernel\\kernel.json

我正在尝试使用 oct2py 在一个简短的 python 脚本中重新使用一些八度代码(在 1 .m 文件中)。 python 脚本从 cmd 控制台正确运行。 我什至可以使用 pyinstaller 将它打包成一个 exe(没有错误,只有几个警告),但是当我运行它时,可执行文件会抛出这个错误并退出 ...

使用oct2py的难度 - Difficulty using oct2py

我最近安装了oct2py及其依赖项,以便导入要在我的python代码中使用的一些matlab函数。 .m文件与我的python代码位于同一目录中。 考虑到实际的函数是在octave / matlab中定义的,请您帮我弄清楚,如何导入这些.m文件以及其中的方法,以及如何在python代码中 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM