Matlab

Matlab wrapper enables controlling the RealSense Cameras in Windows 10. To easily get started,
we have created a package that wraps some of the core functions of the realsense2.dll, in addition to a few simple examples as shown below. This uses Matlab R2017b and requires a Windows 10 laptop with a USB3 port.

Examples

Example Description Link to GitHub
Hello world Depth Capture and render Depth depth_example.m
Play from file Playback pre-recorded video and data streams stored in rosbag format rosbag_example.m
Hello world PointCloud Generate and visualize 3D point cloud pointcloud_example.m
Advance Mode Demonstrate how to modify JSON in advance mode advanced_mode_example.m)

Getting started and Build

Please refer to GitHub for instructions

Last Updated: February 2, 2026

Top
Contact Sales