Skip to main content

library to import Matlab data to python

Project description

MatData2Py

This library imports Matlab data saved in V7.3 format to python

A few important features:

1 - loading most type of Matlab variables such as: vectors, arrays (n dimension), string, char, structure, structure array, cell, cell array and all different type of numerical precisions as well as boolean etc.(tables, timeframe are not supported yet)

NOTE: This lib can correctly import string or strcutre arrays variable types

2- The structure data type of matlab can be presented as either dictionary data type in python or dot presented version in python similar to matlab,

3- the variables in matlab file can be all exported in single dictionary or they can be exported as individual variables in python environment

Installation


pip install matdata2py

Get started

How to use this lib:

import matdata2py as mtp



# load Matlab data file  

# StructsExportLikeMatlab = True/False structures are exported in dictionary format or dot base reference format similar to matlab 

# ExportVar2PyEnv = True/False export all variables in single dictionary or as separate individual variables into python environment  



Variables_output = mtp.loadmatfile(file_Name, StructsExportLikeMatlab=True, ExportVar2PyEnv=False)

print(Variables_output.keys())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matdata2py-0.1.1.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matdata2py-0.1.1-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file matdata2py-0.1.1.tar.gz.

File metadata

  • Download URL: matdata2py-0.1.1.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.16

File hashes

Hashes for matdata2py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 76ff5315a7b9e18d832b6494e8c290b1cbfec65e4a86dc05ce202ce6bf65fd64
MD5 aedba0dbd4e294eb4bc8ac24885a5593
BLAKE2b-256 eb6dd9fad7ca9cca6e6536dd19202c5428323e044858528a6b737999557116ad

See more details on using hashes here.

File details

Details for the file matdata2py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: matdata2py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.16

File hashes

Hashes for matdata2py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d67daf6604f927ddd790d3646cb05f86445c86c593cf10e7e56d8e667813dc0d
MD5 cde72b9f721d9e044b941b240b32fa16
BLAKE2b-256 52f99a4304d98eceab405d180fafe842d45487a6ef4caa591b825d3cd7614338

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page