This video shows the steps to get the video from webcam and live stream on an axis in MATLAB App Designer.

Complete source code is available at:

Webcam video Live Streaming in MATLAB App Designer

We will be glad to hear from you regarding any query, suggestions or appreciations at:

The script to do this in MATLAB is very simple and is copied below:

properties (Access = private)
cam; % Description

function StartButtonPushed(app, event) = webcam;
frame = snapshot(;
im = image(app.UIAxes, zeros(size(frame),’uint8′));



Please note, to make the webcam work you may have to install the MATLAB Add-on package for USB webcam from Add on explorer. Steps are shown in the video.