omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    How to load '*.mat' file?

    Pythonista
    3
    6
    3557
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Han JH
      Han JH last edited by

      Hi guys.

      Can I load mat file(matlab matrix file extension)?

      Usually people use scipy module, but scipy cannot use Pythonista 3, right?

      so, I just wonder there is any other option for loading mat file.

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        Which version?

        Apparently version 7.3+ .mat files are just hdf, so likely could be read with something like https://github.com/jjhelmus/pyfive

        If memory serves, versions older than v7 did not have compression, so we relatively straightforward to decode, are least for simple matrix types.

        Han JH 1 Reply Last reply Reply Quote 0
        • Han JH
          Han JH last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • Han JH
            Han JH @JonB last edited by

            @JonB Thank you for your advice.
            Fortunately my mat file is 7.3+.
            But I don't know how can I use hdf module in "Pythonista".
            May I know example code?

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User last edited by

              Mat4py works for me pip install mat4py in Stash
              But it has a number of limitations

              Han JH 1 Reply Last reply Reply Quote 0
              • Han JH
                Han JH @Guest last edited by

                @dancergraham Thanks. I install mat4py using Stash :)

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB Forums | Contributors