My frame is capturing the same beginning video frame in multiple figures. I want the multiple figure to be images of the video as it progrosses, not the same figure for multiple figures. Here is my code. Please fix it
obj = VideoReader('Climate.mp4');for k = 1 : 5 %fill in the appropriate number
this_frame = read(obj, k); thisfig = figure(); %thisfig = gcf;
thisax = axes('Parent', thisfig); image(this_frame, 'Parent', thisax); title(thisax, sprintf('Frame #%d', k));end
Best Answer