Run on Hardware

Examples showing how to run MATLAB code on Raspberry Pi Hardware.
Updated 11 Aug 2020

View License

NOTE: MATLAB release R2018b onwards, the functionality provided in this File Exchange submission is now a part of the MATLAB Support Package for Raspberry Pi Hardware.
For more information, please visit the following links:

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 (2024). Run on Hardware (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with R2017a to R2018a
Platform Compatibility
Windows macOS Linux
Find more on Audio I/O and Waveform Generation in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!



Version Published Release Notes

Updated the description


Added a documentation link.


Added link to YouTube Video


Updated the description.


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


Minor updates.


Updated for new releases.

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

Added the video link.
Updated title and thumbnail image.