Raspberry Pi 5 Setup - MATLAB Support Package
Show older comments
I just acquired the new Raspberry Pi 5, and wanted to connect to it through MATLAB. I'm using MATLAB 2021b, and followed the steps in setting up the Support package page for Raspberry Pi hardware. However, when I am asked to select a board there is no option for the Raspberry Pi 5 model, which prompts to me to think that's not yet supported. Is this the case?
Answers (5)
Walter Roberson
on 10 Apr 2024
0 votes
You can set up your Raspberry Pi hardware using either the MathWorks® Raspbian image or by customizing the Raspbian Linux operating system on your Raspberry Pi, namely Stretch or Buster. The MathWorks Raspbian image is composed of the latest Raspbian image with all the libraries and packages required to make the image compatible with MATLAB and Simulink®.
This compares to the current release (R2024a), https://www.mathworks.com/help/matlab/supportpkg/install-support-for-raspberry-pi-hardware.html
You can set up your Raspberry Pi hardware using any 32-bit Raspberry Pi Linux® operating system on your Raspberry Pi, namely Buster or Bullseye.
I speculate that your new Raspberry Pi has Bullseye installed.
MathWorks MATLAB Hardware Team
on 15 Apr 2024
0 votes
Hi Paulo,
Currently ,Raspberry 5 is not supported till R2024a. But we are planning to support it in the upcoming releases.
Thanks,
MATLAB Hardware Team
7 Comments
Santino Bianco
on 2 May 2024
I have R2024a and can confirm that Raspberry Pi 5 is not a selectable option in the Hardware Setup GUI. What is the projected release data for Raspberry Pi 5 support?

杰
on 19 May 2024
Um, I also hope to be able to use the support option for Raspberry Pi 5 in MATLAB R2024a as soon as possible. Thank you.
Carlos
on 30 Aug 2024
What about Pi 4 B+?
Walter Roberson
on 31 Aug 2024
Edited: Walter Roberson
on 31 Aug 2024
As of R2024a, Raspberry Pi 4 B+ and Raspberry Pi 5 are not supported.
Sathish
on 6 Oct 2024
Does R2024b supports Raspberry Pi5??
Walter Roberson
on 6 Oct 2024
Sorry, R2024b does not support Raspberry Pi 5.
Sathish
on 7 Oct 2024
Thank you for reply. Is there anyother way to use Raspberry pi 5 with MATLAB?
MathWorks MATLAB Hardware Team
on 15 Oct 2024
0 votes
Hi,
The MATLAB Support Package for Raspberry Pi includes support for the Raspberry Pi 5 (with Bookworm 32-bit OS) starting from the R2024b release. Please upgrade MATLAB to the R2024b version to use the MATLAB Support Package for Raspberry Pi with the Raspberry Pi 5.
Note: The Camera Board, PWM, and Servo functions are not supported for the Raspberry Pi 5 in the R2024b MATLAB Support Package for Raspberry Pi.
Thanks!
2 Comments
Walter Roberson
on 15 Oct 2024
According to https://www.mathworks.com/hardware-support/raspberry-pi-matlab.html the Raspberry Pi 5 is not supported.
Prasanth Sunkara
on 8 Nov 2024
Thank you for pointing this out. It has been updated to reflect the Raspberry Pi 5 support from 24b.
Avani
on 21 Jul 2025
0 votes
Hello I am using Raspberry pi 5, how can i install MATLAB in the pi5 OS or any idea about it please share. Currently I am using 2024b MATLAB in windows.
1 Comment
Prasanth Sunkara
on 21 Jul 2025
Edited: Walter Roberson
on 21 Jul 2025
You do not install MATLAB directly on Raspberry Pi. Instead use Simulink(or MATLAB) Support Package for Raspberry Pi to program Raspberry Pi 5.
Please see the examples to get started: https://www.mathworks.com/help/simulink/examples.html?category=supportpkg-raspberrypi&exampleproduct=all&newonly=&s_tid=CRUX_lftnav
Jjacques SEKO
about 15 hours ago
0 votes
Hello,
it's not only the question of the rpi but also the raspbian version!! No update from stretch, (end of life 2020, LTS 2022), some bugs on https://github.com/mathworks/Raspbian_OS_Setup/blob/master/RaspbianOSsetup_Stretch.sh line 76, without sudo no way for the wget, line 85, cd -> back to home/pi, git:// in place of https://, etc...
You can find the "official raspbian image" https://github.com/mathworks/Raspbian_OS_Setup/releases?page=1 still only for matlab version 2022!!! And a 4Gb image, not enougth for the add-on libraries install!!
So napping from 2022 ?
Best
JJ
1 Comment
Prasanth Sunkara
about 1 hour ago
MathWorks has stopped shipping customized Raspbian OS since 2022.
The current recommendation is to "get your own Raspberry Pi Debian OS" and the let the MATLAB Hardware Setup customize your Operating system to make it compatible with MATLAB and Simulink.
Please let me know if you have more questions.
Thanks,
Prasanth
Categories
Find more on MATLAB Support Package for Raspberry Pi Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!