I am developing a simple app in App Designer and I have been struggling with including a video stream from a webcam.
I have come across the following post, but so far I have been unsuccessful in getting my app to work: https://uk.mathworks.com/matlabcentral/answers/357814-how-to-create-a-custom-preview-window-for-matlab-webcam
So far, what I am doing is including the following commands in my start-up function:
app.Camera = webcam;
And the following lines relate to the activation of the video stream when a switch button is slid to Start:
function CameraStreamSwitchValueChanged(app, event)
im = image(app.UIAxes_2,zeros(size(snapshot(app.Camera)),'uint8'));
Many thanks in advance for the help!