how to prepare a video from a given images

I have 6 images.. how to prepare video from it. I tried with im2frame command...but could not able to get it..

 Accepted Answer

See my demo, attached. That is covered in the demo.

2 Comments

Then please mark the answer as Accepted.

Sign in to comment.

More Answers (1)

Have a look at the examples for VideoWriter()

3 Comments

ok. why structures command is not compatible with many commands.. how to understand the logic behind that?
structures is not a command. structure is, but not structures . structure() creates/initializes a structure variable. If you're referring to the structure() function/command, then what do you mean that it is not compatible with many commands? Give an example. It is not used with other commands. It's used by itself to create a variable. Of course you could then use that variable in other functions, but those functions would have to be expecting a structure variable. So basically I have no idea what you're asking.
struct() is the command, not structure()
If you are asking why not many commands accept structures as input, then the logic is that adding structure inputs to most commands would result in notably increased testing costs.
The VideoWriter method writeVideo does accept a structure input: the allowed approach
writeVideo(obj, mov)
takes a movie structure for its second argument.

Sign in to comment.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!