How to use matlab engine on python without install matlab?

41 vues (au cours des 30 derniers jours)
Abdul Aleem
Abdul Aleem le 2 Avr 2022
Commenté : Walter Roberson le 10 Avr 2022
I am currently working on the project. For that, I need to run some Matlab functions from my python code. I don't have MatLab on my Laptop(running on Windows 10). I searched to find a way to install matlab.engine module in python without MatLab on windows. But unfortunately, I couldn't find out. Help me!

Réponses (1)

Walter Roberson
Walter Roberson le 2 Avr 2022
Engine applications require an installed version of MATLAB; you cannot run the MATLAB engine on a machine that only has the MATLAB Runtime.
  1 commentaire
Walter Roberson
Walter Roberson le 10 Avr 2022
To explicitly reply to your edited question:
In order to do what you are asking, you need access to a real licensed MATLAB executable on some system accessible from the laptop though the network, and you would need to have the python code connect to the remote COM object that was the true MATLAB executable. Mathworks does not document this as being supported, but I suspect it could be done.
The exact MATLAB license that would be needed for this purpose would depend upon which systems had access to the MATLAB executable. If it was your own laptop and your own MATLAB license and you arrange the security so that only you can invoke the remote MATLAB session, then if I recall correctly you can use your own license. However, if you permit multiple users to access the remote MATLAB session then you would need to purchase a Network license and list each of them specifically in the license. If you permit users inside your organization but not individually listed in the license file to access the remote MATLAB session, then you would need to purchase the most expensive kind of network license, the "floating" license.
If you permit users outside your organization to access the remote MATLAB session, then if I recall correctly, the kind of access you propose would be against the MATLAB license: users outside your organization can only access your MATLAB when the access they are given is completely constrained, only able to compute exactly things determined in advance. As you would be using the Engline access, which would in theory permit any python user to edit the code to change what commands they sent to the MATLAB session, giving that access would be a license violation.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by