Python Forum
How to use .m matlab file in python ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use .m matlab file in python ?
#1
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.
Reply
#2
What have you tried? From a quick google search, this is a pretty high result: http://blink1073.github.io/oct2py/
Reply
#3
Hello,
what have you tried so far? Have you searched the internet to find a possible solution? What were your finds?
Reply
#4
(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.
Reply
#5
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 -
Reply
#6
https://www.mathworks.com/solutions/matl...ython.html ?

https://pypi.org/project/pymatlab/ ?
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  problem of converting Matlab code to python DongyanZ 2 1,410 Feb-03-2023, 01:04 PM
Last Post: jefsummers
  Convolution "same" in Python doesn't work as Matlab claw91 4 3,754 Oct-01-2020, 08:59 AM
Last Post: claw91
  Python equivalent of Matlab code kwokmaster 5 7,080 Apr-03-2020, 12:02 AM
Last Post: scidam
  Is there similar function to lsqnonlin (in matlab) in python? Jay_Nerella 1 5,950 Nov-11-2019, 08:40 AM
Last Post: feli_x
  Matlab to Python Ariane 6 7,073 Jun-14-2018, 12:08 PM
Last Post: Ariane
  Importing matlab cell array (.mat) into a python list scanato 0 8,658 Nov-15-2017, 11:04 AM
Last Post: scanato

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020