MATLAB support package for Raspberry Pi lets you write MATLAB programs that communicate with your Raspberry Pi and acquire data from the board’s GPIO pins, cameras, and other connected devices. Because MATLAB is a high-level interpreted language, it is easy to prototype and refine algorithms for your Raspberry Pi projects. MATLAB includes thousands of built-in math and plotting functions that you can use for Raspberry Pi programming, covering domains such as image and video processing, optimization, statistics, and signal processing.
Using MATLAB for Raspberry Pi programming lets you:
Simulink Support Package for Raspberry Pi lets you develop algorithms in Simulink, a block diagram environment for modeling dynamic systems and developing algorithms, and run them standalone on your Raspberry Pi. The support package extends Simulink with blocks for configuring your Raspberry Pi, sending and receiving UDP packets, and reading and writing data from sensors. This includes writing data to the free ThingSpeak data aggregation service for Internet of Things applications.
After creating your Simulink model, you can simulate it, tune algorithm parameters until you get it just right, and download the completed algorithm for standalone execution on the device. With the MATLAB Function block, you can incorporate MATLAB code into your Simulink model.
Using Simulink for Raspberry Pi programming lets you:
In addition to using Simulink Support Package for Raspberry Pi, you can generate readable and portable C code from MATLAB algorithms and deploy it on a Raspberry Pi using Raspberry Pi support from MATLAB Coder.
See also: Hardware for project-based learning, Model-Based Design, image processing and computer vision, control systems, Internet of Things, Arduino programming, LEGO MINDSTORMS programming, robotics, control logic videos, communicating with hardware and instruments