Run on Hardware

Examples showing how to run MATLAB code on Raspberry Pi Hardware.

You are now following this Submission

Note: For MATLAB releases R2026a and beyond, the functionality provided in this File Exchange submission is now part of the Raspberry Pi Blockset. See this documentation link for more details.
Note: For MATLAB releases R2018b to R2025b, the functionality provided in this File Exchange submission is now part of the MATLAB Support Package for Raspberry Pi Hardware. See this documentation link for more details.
This package includes examples from image processing and audio signal processing domains that demonstrate the workflow of generating C code from a MATLAB algorithm and running it on hardware as a stand-alone application using MATLAB Coder. A MATLAB function, called runOnHardware, is provided for deploying a MATLAB algorithm for prototyping on a Raspberry Pi hardware board.
The Sobel Edge detection example includes the system objects for capturing images from a USB webcam and for displaying images on the Raspberry Pi desktop.

Cite As

MathWorks MATLAB Coder Team (2026). Run on Hardware (https://ch.mathworks.com/matlabcentral/fileexchange/62243-run-on-hardware), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Audio I/O and Waveform Generation in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with R2017a to R2018a

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.0.9

As of R2026a, the functionality has migrated to the new Raspberry Pi Blockset

2.0.8

Updated broken link to documentation.

2.0.7

Updated the description

2.0.6

Added a documentation link.

2.0.5

Added link to YouTube Video

2.0.4

Updated the description.

2.0.3

Fixed a minor issue where URL encoded spaces are inserted into the directory names when installing manually instead of using the add-on explorer.

2.0.2

Minor updates.

2.0.1

Updated for new releases.

2.0.0.0

Updated dependency - Embedded Coder
Added a new video
New audio signal processing example added.

1.0.0.0

Added the video link.
Updated title and thumbnail image.