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()

답변 (4개)

Yongjian Feng
Yongjian Feng 2021년 8월 29일

0 개 추천

This is the same as calling matlab from python, right? Can you call it from python first?

댓글 수: 2

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일

0 개 추천

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.
Yann Debray
Yann Debray 2025년 6월 30일
편집: Yann Debray 2025년 6월 30일

0 개 추천

I recorded a demo that might help you discover the capabilities of running MATLAB on Google Colab
This is newly possible (since Jun 24th 2025) as Google announced the Colab Terminal Is Now Free For All Users

카테고리

제품

릴리스

R2021a

질문:

2021년 8월 29일

편집:

2025년 6월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by