How to Call MATLAB from Python

This video uses a sentiment analysis example to show how to call MATLAB® code from Python. - Watch the companion video about calling Python from MATLAB: - Learn more about using MATLAB with Python: - Download the code for this video: In this example, Python is used for listening to audio through a microphone and detecting text from speech. Then, a pretrained machine learning model in MATLAB is used to predict the sentiment (positive, negative, or neutral) of the detected text. First, you will see how the MATLAB Engine API for Python can be used to directly call MATLAB as a computational engine from Python code. Next, you will learn how to deploy MATLAB code as a Python package using MATLAB Compiler SDK™. This deployed package requires only the MATLAB Runtime, which enables you to share your code royalty-free with users who do not need MATLAB. Check out the full playlist, which shows how to use MATLAB and Simulink across a range of
Back to Top