MATLAB: How to convert images to video using Matlab shashank prasanna I'm new I have 20 images and I want to convert this images to video. How can I do it ? thank you for your answer Best Answer Convert all your images to .gif file.... https://in.mathworks.com/matlabcentral/answers/94495-how-can-i-create-animated-gif-images-in-matlabOr into a video:http://in.mathworks.com/help/matlab/examples/convert-between-image-sequences-and-video.html Related SolutionsMATLAB: Convert 3d image into multiple 2d images using matlab source code.. pls help me https://in.mathworks.com/matlabcentral/answers/29649-how-can-i-convert-a-3d-image-to-2d-in-matlab MATLAB: Convert images to video In the help to addframe, you find an example of that: http://www.mathworks.com/help/matlab/ref/avifile.addframe.htmlaviobj = avifile('example.avi','compression','None');t = linspace(0,2.5*pi,40);fact = 10*sin(t);fig=figure;[x,y,z] = peaks;for k=1:length(fact) h = surf(x,y,fact(k)*z); axis([-3 3 -3 3 -80 80]) axis off caxis([-90 90]) F = getframe(fig); aviobj = addframe(aviobj,F);endclose(fig);aviobj = close(aviobj);Instead of creating a surface plot, you can also display an image (imshow). Related QuestionHow to load image into MATLAB CentralConvert Video Frames to ImagesCreate a video or gif using .PNG file
Best Answer