Matlab,Python(Linux):mat文件无法被linux的loadmat识别

1.问题记录

raise TypeError('Expecting miMATRIX type here, got %d' % mdtype)
TypeError: Expecting miMATRIX type here, got 2375258764

2.解决

  1. 需要添加’-v7’(或’-v6’)作为save的参数以创建较旧格式的文件,因为SciPy无法识别默认创建的’-v7.3’文件。

Matlab,Python(Linux):mat文件无法被linux的loadmat识别_第1张图片

  1. 我直接指定save()为 ‘-v6’,这样文件内存变大,问题解决

reference1

你可能感兴趣的:(深度学习,python,开发语言)