Call MATLAB from Google Colab

86 ビュー (過去 30 日間)
Alejandro Cermeño
Alejandro Cermeño 2021 年 8 月 29 日
コメント済み: Yoav Kahana 2022 年 3 月 15 日
Hello there, Is it possible to used MATLAB commands from Google Colab (Jupiter on cloud)?
For example, I would like to call Risk Management Toolbox functions like bin(vbt, Name, Value), tbfi(vbt, Name, Value) or tuff(vbt, Name, Value) in Google Colab.
I tried without success
import matlab.engine
eng = matlab.engine.start_matlab()

回答 (2 件)

Yongjian Feng
Yongjian Feng 2021 年 8 月 29 日
This is the same as calling matlab from python, right? Can you call it from python first?
  2 件のコメント
Alejandro Cermeño
Alejandro Cermeño 2021 年 8 月 30 日
Yes, calling MATLAB from python is done with
import matlab.engine
eng = matlab.engine.start_matlab ()
however, this method implies that MATLAB is installed on the PC and Google Colab is a cloud environment.
Is it possible to call MATLAB from Google Colaboratory?
Yoav Kahana
Yoav Kahana 2022 年 3 月 15 日
Hi,
I also want to use a matlab function in my colab's notebook, and have the same problem, as you mentioned.
Did you find any solution for that?
I would be very glad to know!

サインインしてコメントする。


Yongjian Feng
Yongjian Feng 2021 年 8 月 31 日
Seems like you need to bridge it.
Your local PC and Google Colab shall be able to communicate using python, I imagine. Using HTTP server for example. Then using python in your local PC to call matlab. Then python in your local PC to communicate with Google Colab.

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by