How to upload Matlab program to Raspberry Pi 2 and execute it in the Raspberry Pi directly ? is it even possible ?

12 vues (au cours des 30 derniers jours)
I am currently doing my final year project and I have been asked to develop a program in Matlab simulink and then upload the program into the Raspberry Pi 2 so It would be acting as a standalone device. The nature of my program is image processing.

Réponse acceptée

Mohith Prabhu
Mohith Prabhu le 10 Oct 2018
With the R2018b release of MATLAB, you can deploy your MATLAB code on Raspberry Pi as a standalone executable.
Refer the Deploying MATLAB functions on Raspberry Pi for more information.
  17 commentaires
Dp le 20 Sep 2020
Hi Walter
I just found the problem that why I was not able to deploy code in RPi, because I was using standard Image of Linux rather I should use the MatLab one(when we download RPi from Adds-on).
Thanks for your kind responce.

Connectez-vous pour commenter.

Plus de réponses (4)

mahsamba le 27 Mai 2016
Hi. I have a Matlab code that I want to run on raspberry pi. However, I saw here that matlab doesn't run on raspberry pi. I have the pedestrian detection code, how can that be run real time on a micro-controller? Can you please recommend another microcontroller if possible? Thank you

Walter Roberson
Walter Roberson le 14 Oct 2015
You cannot run MATLAB code on the Raspberry Pi. You can, however, generate code that can run on the device. The easiest way to create a standalone for the raspi is to use Simulink.

youssouf moussa
youssouf moussa le 12 Mar 2019
hi is it possible With the R2018a not R2018b , to deploy your MATLAB code on Raspberry Pi as i saw answererd that it is possible with R2018b as a standalone executable?
  1 commentaire
Walter Roberson
Walter Roberson le 9 Oct 2019
No. Before R2018b you had to either use Simulink with Raspberry as the target, or else use MATLAB Coder with generic "C" target, and write your own code to interface to any operating system functions or devices such as the display.

Connectez-vous pour commenter.

Antonio  Ofogo
Antonio Ofogo le 24 Mai 2022
Hi there. I'm working on a space detection project in a parking lot, I wrote a matlab code to do it and it works perfectly on my machine but it is supposed to be deployed on Raspberry Pi 3, how do I do it please?
  1 commentaire
Walter Roberson
Walter Roberson le 24 Mai 2022

Connectez-vous pour commenter.


En savoir plus sur Simulink Support Package for Raspberry Pi Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by