MATLAB Answers

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

336 views (last 30 days)
Hatef
Hatef on 14 Oct 2015
Commented: Walter Roberson about 20 hours ago
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.

  0 Comments

Sign in to comment.

Accepted Answer

Mohith Prabhu
Mohith Prabhu on 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.

  12 Comments

Show 9 older comments
Walter Roberson
Walter Roberson on 7 Jul 2020 at 21:47
Once you have trained, you can save the training information to a .mat file. You can then construct a program that loads that .mat file and uses it to classify information. Even if your version does not permit you to deploy the training process itself, your version will permit you to deploy classifying based on existing training information.
Dp
Dp about 11 hours ago
well I been using R2020a at this stage so I think I been making mistake I think so let me find my mistake, and thanks for you help.

Sign in to comment.

More Answers (3)

mahsamba
mahsamba on 27 May 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

  0 Comments

Sign in to comment.



youssouf moussa
youssouf moussa on 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 Comment

Walter Roberson
Walter Roberson on 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.

Sign in to comment.