Creating Movies and Animations in Matlab
Ғылым және технология
This tutorial illustrates how to create movies and animations in Matlab. We show a workflow to create a series of static figures before stitching them all together to create a movie file (.avi or .mp4 file). Topics include but are not limited to:
-Workflow for creating animations in Matlab
-getframe
-VideoWriter
The Matlab script developed in this video is available at faculty.washington.edu/lum/Edu....
Before watching, please ensure you have viewed the following video(s):
-2D Plotting in Matlab ( • 2D Plotting in Matlab )
-3D Plotting in Matlab ( • 3D Plotting in Matlab )
-(OPTIONAL) Interacting with a Simulink Model from a Matlab Script ( • Interacting with a Sim... )
Пікірлер: 187
In case it is helpful, here are all my Matlab videos in a single playlist kzread.info/head/PLxdnSsBqCrrEU0dLSrTcl0-w9cVYKMTaF. Please let me know what you think in the comments. You can support this channel via Patreon at www.patreon.com/christopherwlum or by clicking the 'THANKS' button underneath the video. Thanks for watching!
@hansrajkumar7390
4 жыл бұрын
Amazing video
@pranabchakraborty3791
3 жыл бұрын
Thanks it was very helpful
@keenanaden7317
2 жыл бұрын
i guess I'm kind of off topic but does anybody know of a good site to stream new tv shows online ?
This video is extremely helpful. This is what KZread is all about. THANK YOU
@ChristopherLum
5 жыл бұрын
Thanks for watching, I'm glad you enjoyed it!
@kavanganapathy7086
5 жыл бұрын
I completely agree with you
Thanks for this video, I used to just point my camera at matlab and wait for it to move by itself! Then I saw this. It helped.
Matlab Videos For Dummies! This was a great tutorial with very clear, easy explanation! Thanks!
I bumped into this video by accident while trying to draw a dynamic network generation process and found it to be really helpful THANK YOU SO MUCH!! am expecting to come back and learn more.
One more MATLAB trick that I know how to do now! Thanks much - this course has been a good introduction to a lot of MATLAB tools.
Really easy to follow, concise, and to the point. Thank you!
AE501: I had no idea that Matlab had such a fantastic feature. 😀 This is a very useful resource.
I was not aware that Matlab allowed users to create animated graphs. Thank you for posting this video.
Thanks for the video. I think Mathematica's method of creating movies is a little simpler on initial setup but I was quite surprised that Matlab still has a lot of options to refine your movie. Using the view function to make it spin looked pretty cool.
Very clear and thorough description. Thank you!
Had to plot a trajectory of a point before but didn't know how to create a function out of that until now. Thanks!
Super cool! I've been a Matlab user for many years but have never animated anything. I can see how this could be useful along with the discussions of PDEs
So cool! Thank you, that video was so helpful for me. It makes my calculations so much more comprehensive just by being able to see whats going on at a specific time!
AE501. I've always wanted to learn how to make animations in matlab, I'm glad we covered it in this course!
Thanks for all the MATLAB and Mathematica videos!
Super helpful with animations, looking forward to applying it in conjunction with the 1D Wave equation
Thanks for putting this together, it was much easier than expected.
This is amazing. I needed a way to post process some simulation data and this was exactly what I was looking for!
AE501: Thanks for showing animations in Matlab. I've never used these functions before. They are very useful.
AE 501: I'm actually working on a project for work plotting the trajectory of an object in orbit and this would be great at finding anomalies visually during the simulation and when they occur vs. seeing the final result with the resultant error. Great video!
AE 501 - Being able to visualize our PDE solutions using Matlab animations will be very helpful for understanding what the solution is doing for me. Thanks for this demo!
Great stuff. I had no idea how to create an animation in matlab so I found this video very interesting and useful. Thank you
Great video for creating and animations in MATLAB! Thanks.
Very cool. This video provided me the information needed to get started in making animations.. thank you!
Really, even though I'm totally against holding an IPad instead of real papers, your explanations are convoluted and lovely. The dog thing? More to love!
Thanks for the informative and entertaining intro to matlab animations!
I can't thank you enough for these tutorials. Your explanations are the best!! ❤️
@ChristopherLum
Жыл бұрын
Hi Scar, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. I can also answer any questions, provide code, notes, downloads, etc. on Patreon. Thanks for watching! -Chris
Thank you very much! Explained very well and organized!
AE501: Great video, I never really realized that MATLAB could be used for animation so easily, I had always just assumed it was something very complex that I'd never be able to do but this was very fun to learn!
I should have watched this video before wasting hours trying to figure out Matlab's documentation. Thanks for creating this video!
@ChristopherLum
5 жыл бұрын
I'm glad it was helpful, thanks for watching!
Very nice tutorial Mr. Lum, thanks a lot!
Interesting tutorial on some features I was previously unaware of!
Very well explained in a simple way, thanks for the video.
Such a helpful matlab workflow for creating animations.
AE511: Great lecture, very informative - reminiscent of AE501
AE 501 Never learned about this, very cool!
This is amazing. You are amazing. Thank you so much!!!!!
Dude, you're just the best!
Great tutorial, helped me with my phd a lot 😁
AE501: This will be a great reference for the upcoming homework on animating the solution for a vibrating guitar string.
Thanks for providing this tutorial!
Didnt know how to do this before, thanks!
AE501: This video did a great job of breaking down the process into a few easily understood steps. I find it interesting that matlab adopts such a methodical approach to creating a video file, using "movievector" like a film reel holding all the frames is an easy analogy to grasp. Thank you
@ChristopherLum
3 жыл бұрын
I'm glad it was helpful
Thank you for the great explanation. How would you do this for multiple particles? Just create another for-loop inside the for-loop?
I've always wondered how to do this in matlab. thanks.
Great summary of animations in Matlab
fantastic kermit impression, helpful video too
AE501: Thank you for the great explanation and this will be very helpful when creating a movie for the HW!
So cool to see how this is done!
Very good presentation Chritopher!
AE501: I wasnt aware Matlab was capable of this. Thank you!
Thank you very much it helped me a lot...
AE511 great video, I liked the example with your dog.
AE 511. This is a very useful function that I did not know MATLAB had.
Nice tutorial! Thanks for sharing!
Great help for the HW!
Very clear explanation! Good job! One question: I’ve tried to use it for my code and the movie get saved really zoomed...is there any way to sort it out??
Awesome use of Matlab!
Hey Chris, Any idea how to do it when you have a Simulink model running and the animation is being plotted in Simulink within a function with code generation? Because then it requires pre-initialization and that's where I am stuck. I have tried to initialize the movieVector as a struct with cdata and colormap as fields but still having no progress.
Thanks for the demo!
Thank you so much, I've been doing it wrong. I plotted in a figure every 0.2s and recorded the screen, and then edited the clip afterwards and the result wasn't good enough.
The analogy was helpful, thanks
Hello sir. Thank you for the video. Is it possible to have some other object instead of the circle in the plot? Is it possibe to change orientation of that object? How can this be done?
This video really helpful. Thank you
Very useful and interesting, thanks!
Man, I am truly impressed. You know how to teach very well. You know how to lay foundation by explaining what goes behind the theory first and then jump into Matlab. You MUST create your own academy and just focus on mathematics + physics + coding :)
@ChristopherLum
4 жыл бұрын
Thanks for the kind words. If you are interested, I have a playlist of other Matlab videos at kzread.info/head/PLxdnSsBqCrrEU0dLSrTcl0-w9cVYKMTaF. Please feel free to check it out and thanks for watching!
@mostafaahmadi4998
4 жыл бұрын
@@ChristopherLum Thanks for the link Chris. I really hope I had come across your channel while I was doing my PhD. I would have then able to create an animation/movie of antimatter annihilation using the techniques in your videos.
This dude knows his stuff.
@ChristopherLum
3 жыл бұрын
I'm glad it was helpful. There are several related videos on the channel. Please feel free to check them out and I would love to hear what you think in the comments. Thanks for watching!
This is the greatest thing I've ever seen. in my life
@ChristopherLum
3 жыл бұрын
I'm glad it was helpful. There are several related videos on the channel. Please feel free to check them out and I would love to hear what you think in the comments. Thanks for watching!
thank you This video helped in my assingment Sam
Clear explanation!
Thanks for the video. It came in handy for the homework.
Didn't know you could do this! Cool!
Thank you for the informative video, helped me a lot!
@ChristopherLum
5 жыл бұрын
I'm glad it was helpful thanks for watching
Wow, I really enjoyed this video. It is rare to find a fellow engineer/ developer with an artistic streak. A rare combination. I am going to use this to animate my article swarm algorithm over the Ratrigin, Beale, Peaks, Sphere function. my PSO was not able to handle Easom functions :D
@ChristopherLum
2 жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
This was a fantastic video. Clearly explained.
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful. I have more Matlab videos on the channel. Please feel free to check them out and let me know what you think. Thanks for watching!
Thank you Chistopher Lum. Your video is super helpful.
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful thanks for watching!
Thanks for the video. May I ask how should I type at first for loading a csv file to create a movie?
I'll be curious how often plotting animations via Matlab like this comes up in industry. Good to have the resource to showcase data down the line though.
if i could put thousand like i would do thanks dr i hope you continue ur tutorials u have great ability to simplify the concepts and u also helped me in my Final year project
@ChristopherLum
5 жыл бұрын
Thanks I'm glad it was helpful
Very well done and very helpful and at the same time it is very practical. Thank you for helping me to learn MatLab.
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful, thanks for watching! There are other videos related to Matlab/Simulink on the channel, please feel free to check them out.
Great tutorial!
Very helpful. Thank you
Great explanation!
Sir, can you please provide the guidance on how to sign values to the array of movievector? I tried using the last screen you provided but the captured movies are showing up as blank screens. I am unsure about the correct approach for assigning numbers to the array.
Dear Christopher Thanks for your tutorial I have a MATLAB code for vibration of fgm beam and I want to plot the surface plot for power Law index, aspect ratio and frequency with surf plot and not know how to do? Can help sir
AE501: I've never tried to make animations of plots. Very interesting!
thanks for the video. I liked the dog and the giraffe.
[AE501 24:14] I like that you don't cut out the portions where you run into an expected error. It's helpful to see you debug and explain the error that is occurring.
@ChristopherLum
2 жыл бұрын
Yes, I make a lot of mistakes along the way 😊
Nice way to visualize data in matlab
I love your account. Fantastic
Thank you sire. This was SO helpful
@ChristopherLum
4 жыл бұрын
You're very welcome, this is a part of a series of videos on the channel. Please feel free to check them out and let me know what you think. Thanks for watching!
Having trouble with the specified rectangle parameter. It says matlab no longer supports this capability. My plots are made to 'docked' style in the startup .m file, could this create this problem?
Excellent explantion!! Thanks for such great content!
@ChristopherLum
3 жыл бұрын
I'm glad it was helpful. There are several related videos on the channel. Please feel free to check them out and I would love to hear what you think in the comments. Thanks for watching!
Dear Christopher, i have a problem , i want to apply velocities in my trajectory how should i do that?
Great lecture sir
Lol...the real 🐕..so cute.great timing
Matlab gives me the following error: "The specified profile is not valid." when trying to make a mp4 file. I also tried to put .mp4 behind the filename but is doesn't work... I tried Vid = VideoWriter('Video.mp4','MPEG-4'); and Vid = VideoWriter('Video','MPEG-4');. Can someone help me??:)
Ok but when is your MATLAB feature film coming out??
Neat demo!