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

5 ビュー (過去 30 日間)
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.

採用された回答

Mohith Prabhu
Mohith Prabhu 2018 年 10 月 10 日
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 件のコメント
Walter Roberson
Walter Roberson 2020 年 7 月 22 日
I have a vague memory (that would need to be cross-checked) that for Raspberry Pi (but not arduino) it is possible to copy .mat files over and to read from them on the Pi, but only variables that are purely numeric (possibly restricted further to double.) I have never tried to deploy anything at all to the Pi (I have one here, but I have been busy trying to get Arduino to work.)
Dp
Dp 2020 年 9 月 20 日
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.
DP

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

その他の回答 (4 件)

mahsamba
mahsamba 2016 年 5 月 27 日
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 2015 年 10 月 14 日
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 2019 年 3 月 12 日
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 件のコメント
Walter Roberson
Walter Roberson 2019 年 10 月 9 日
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.

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


Antonio  Ofogo
Antonio Ofogo 2022 年 5 月 24 日
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?

カテゴリ

Help Center および File ExchangeRaspberry Pi Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by