Python Forum
How to use .m matlab file in python ? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: How to use .m matlab file in python ? (/thread-9989.html)



How to use .m matlab file in python ? - sameer - May-08-2018

Hi,
I have created .m file matlab file in which i have used supporting files like .mat file as a source file .
I want to use this .m file script matlab file in python and the output also come in python i.e execution of .m file happen through python
and in python only.
kindly tell me how to solve this problem.

Thanks
sameer.


RE: How to use .m matlab file in python ? - nilamo - May-08-2018

What have you tried? From a quick google search, this is a pretty high result: http://blink1073.github.io/oct2py/


RE: How to use .m matlab file in python ? - j.crater - May-08-2018

Hello,
what have you tried so far? Have you searched the internet to find a possible solution? What were your finds?


RE: How to use .m matlab file in python ? - sameer - May-08-2018

(May-08-2018, 07:37 AM)nilamo Wrote: What have you tried? From a quick google search, this is a pretty high result: http://blink1073.github.io/oct2py/

i have tried alone octave software then octave was unable to load .mat file , so i shifted to python and use scipy . By using scipy in python i was able to run .mat file but the format of data show in python is not good.


How to run .m Script MATLAB file in Python. - sameer - May-10-2018

I Really need your help, kindly help me to solve this problem.

I have .m MATLAB script file and I want to run and execute this .m script file in any of the open software like Octave / Freemat or Python as well.

This .m MATLAB script file contains / imports many files such as .mat file, fort.ele file, binary file. I am unable to load .mat file in Octave and Freemat.

Kindly tell me the procedure to run and execute this .m file through any of the open source software. At this link: https://files.fm/u/nw8d3ddw?k=9b7ce89a , you can find all the source / import files used in this .m script. https://files.fm/u/nw8d3ddw?k=9b7ce89a
Doh

.m Matlab script code is provided below -



RE: How to run .m Script MATLAB file in Python. - wavic - May-10-2018

https://www.mathworks.com/solutions/matlab-and-python.html ?

https://pypi.org/project/pymatlab/ ?