如何在 colab 中加载 matlab 文件?



我想使用

scipy.io.loadmat('../Data/burgers_shock.mat')

我不知道如何设置.mat文件的路径以及保存.mat文件的位置。

  1. 将您的 .mat 文件上传到您的驱动器上。
  2. 在代码顶部添加这些行 从谷歌.colab 导入驱动器 drive.mount('/content/drive'(
  3. 然后只需使用以下路径加载 S=scipy.io.loadmat('/content/drive/My Drive/burgers_shock.mat'(;

最新更新