如何在 google colab 中运行 matlab .m 文件

AK0*_*101 5 matlab python-2.7 pytorch google-colaboratory torchvision

我目前正在尝试运行这个 repo https://github.com/Fanziapril/mvfnet 这需要一个步骤:

"Run the Matlab/ModelGeneration/ModelGenerate.m to generate the shape
model "Model_Shape.mat" and copy it to the Matlab/"
Run Code Online (Sandbox Code Playgroud)

是否可以.mcolab 中运行文件来执行此操作?

另外,我查看了 oct2py 库 https://blink1073.github.io/oct2py/,但无法成功运行该文件。我遵循了如何在 Python 上运行 MATLAB 代码

Kor*_*ich 5

您需要先安装八度

!apt install octave
Run Code Online (Sandbox Code Playgroud)

然后你可以运行你的 m 文件

!octave -W file.m
Run Code Online (Sandbox Code Playgroud)

这是一个最小的例子