MATLAB: How to load video on matlab gui

MATLABmatlab gui

im a bit confuse on how to load a video on matlab gui can anyone help me with the problem. Because i am trying to load the video on axes and i havent find any answer that is correct on google.

Best Answer

  • You can also make your own GUI as shown in following code
    v = VideoReader('xylophone.mp4');
    ax = axes();
    frame = readFrame(v);
    im_frame = imshow(frame, 'Parent', ax);
    while hasFrame(v)
    im_frame.CData = readFrame(v);