matlab and python data transfer

4 visualizzazioni (ultimi 30 giorni)
nt
nt il 9 Ott 2014
Risposto: Swasti il 10 Lug 2025
Hi,
Can I know how to transfer data between matlab and python? It is better that I can call python function from matlab. If it cannot, transfer data is also ok. Thank you in advance.
  1 Commento
Geoff Hayes
Geoff Hayes il 9 Ott 2014
Which version of MATLAB are you using? If R2014b, you can take a look at calling python libraries.
Else, what kind of data do you wish to transfer between MATALB and python?

Accedi per commentare.

Risposte (1)

Swasti
Swasti il 10 Lug 2025
It sounds like you want to call Python functions in MATLAB. You can do this using the Python Interface for MATLAB. There are more instructions on setting up the Python Interface here:
If you would instead like to call MATLAB functions from Python, you can use the MATLAB Engine API for Python. The instructions for setting up the MATLAB engine are here:

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by