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

  • @ChristopherLum
    @ChristopherLum4 жыл бұрын

    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

    @hansrajkumar7390

    4 жыл бұрын

    Amazing video

  • @pranabchakraborty3791

    @pranabchakraborty3791

    3 жыл бұрын

    Thanks it was very helpful

  • @keenanaden7317

    @keenanaden7317

    2 жыл бұрын

    i guess I'm kind of off topic but does anybody know of a good site to stream new tv shows online ?

  • @jaholden4
    @jaholden45 жыл бұрын

    This video is extremely helpful. This is what KZread is all about. THANK YOU

  • @ChristopherLum

    @ChristopherLum

    5 жыл бұрын

    Thanks for watching, I'm glad you enjoyed it!

  • @kavanganapathy7086

    @kavanganapathy7086

    5 жыл бұрын

    I completely agree with you

  • @morganwalker940
    @morganwalker9405 жыл бұрын

    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.

  • @MattRidzonPE
    @MattRidzonPE5 жыл бұрын

    Matlab Videos For Dummies! This was a great tutorial with very clear, easy explanation! Thanks!

  • @jingyufan7644
    @jingyufan76443 жыл бұрын

    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.

  • @charlesharmon9065
    @charlesharmon90654 жыл бұрын

    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.

  • @zacharywilliams2436
    @zacharywilliams24365 жыл бұрын

    Really easy to follow, concise, and to the point. Thank you!

  • @solomondawit8866
    @solomondawit88668 ай бұрын

    AE501: I had no idea that Matlab had such a fantastic feature. 😀 This is a very useful resource.

  • @matthewbajamundi8774
    @matthewbajamundi87744 жыл бұрын

    I was not aware that Matlab allowed users to create animated graphs. Thank you for posting this video.

  • @jasondorn3514
    @jasondorn35144 жыл бұрын

    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.

  • @melissawells8133
    @melissawells81334 жыл бұрын

    Very clear and thorough description. Thank you!

  • @julianwoo1609
    @julianwoo16095 жыл бұрын

    Had to plot a trajectory of a point before but didn't know how to create a function out of that until now. Thanks!

  • @markmurphy5374
    @markmurphy53744 жыл бұрын

    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

  • @embraceyourinnerfreak9428
    @embraceyourinnerfreak94283 жыл бұрын

    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!

  • @nathanlipshutz3140
    @nathanlipshutz31402 жыл бұрын

    AE501. I've always wanted to learn how to make animations in matlab, I'm glad we covered it in this course!

  • @mrassbandit23
    @mrassbandit235 жыл бұрын

    Thanks for all the MATLAB and Mathematica videos!

  • @minaanderberg884
    @minaanderberg8844 жыл бұрын

    Super helpful with animations, looking forward to applying it in conjunction with the 1D Wave equation

  • @mitchellhubbard5727
    @mitchellhubbard57275 жыл бұрын

    Thanks for putting this together, it was much easier than expected.

  • @SoumilSahu
    @SoumilSahu2 жыл бұрын

    This is amazing. I needed a way to post process some simulation data and this was exactly what I was looking for!

  • @iremerkan725
    @iremerkan7258 ай бұрын

    AE501: Thanks for showing animations in Matlab. I've never used these functions before. They are very useful.

  • @Gholdoian
    @Gholdoian2 жыл бұрын

    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!

  • @mattpierucci7647
    @mattpierucci76478 ай бұрын

    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!

  • @LorraineB_0911
    @LorraineB_09115 жыл бұрын

    Great stuff. I had no idea how to create an animation in matlab so I found this video very interesting and useful. Thank you

  • @HIEPNGUYEN-wb7yg
    @HIEPNGUYEN-wb7yg5 жыл бұрын

    Great video for creating and animations in MATLAB! Thanks.

  • @RocketRoberts
    @RocketRoberts3 жыл бұрын

    Very cool. This video provided me the information needed to get started in making animations.. thank you!

  • @robertocaesar
    @robertocaesar3 жыл бұрын

    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!

  • @devinligman
    @devinligman5 жыл бұрын

    Thanks for the informative and entertaining intro to matlab animations!

  • @scar6073
    @scar6073 Жыл бұрын

    I can't thank you enough for these tutorials. Your explanations are the best!! ❤️

  • @ChristopherLum

    @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

  • @avivsharon819
    @avivsharon8193 жыл бұрын

    Thank you very much! Explained very well and organized!

  • @jackpascho2561
    @jackpascho25618 ай бұрын

    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!

  • @ryanmuoio6569
    @ryanmuoio65695 жыл бұрын

    I should have watched this video before wasting hours trying to figure out Matlab's documentation. Thanks for creating this video!

  • @ChristopherLum

    @ChristopherLum

    5 жыл бұрын

    I'm glad it was helpful, thanks for watching!

  • @kamalgurnani924
    @kamalgurnani9245 жыл бұрын

    Very nice tutorial Mr. Lum, thanks a lot!

  • @sidraman6950
    @sidraman69505 жыл бұрын

    Interesting tutorial on some features I was previously unaware of!

  • @subodhmodak2931
    @subodhmodak29313 жыл бұрын

    Very well explained in a simple way, thanks for the video.

  • @daniellerogers5959
    @daniellerogers59594 жыл бұрын

    Such a helpful matlab workflow for creating animations.

  • @MattAero
    @MattAero5 жыл бұрын

    AE511: Great lecture, very informative - reminiscent of AE501

  • @edwardmau5877
    @edwardmau5877 Жыл бұрын

    AE 501 Never learned about this, very cool!

  • @peacefulandpretty2372
    @peacefulandpretty23725 жыл бұрын

    This is amazing. You are amazing. Thank you so much!!!!!

  • @1matzeplayer1
    @1matzeplayer14 жыл бұрын

    Dude, you're just the best!

  • @ClipperDev
    @ClipperDev3 жыл бұрын

    Great tutorial, helped me with my phd a lot 😁

  • @sethwhittington28
    @sethwhittington283 жыл бұрын

    AE501: This will be a great reference for the upcoming homework on animating the solution for a vibrating guitar string.

  • @darylfishback-duran3580
    @darylfishback-duran35805 жыл бұрын

    Thanks for providing this tutorial!

  • @joewalker5753
    @joewalker57534 жыл бұрын

    Didnt know how to do this before, thanks!

  • @ahungryflyer
    @ahungryflyer3 жыл бұрын

    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

    @ChristopherLum

    3 жыл бұрын

    I'm glad it was helpful

  • @casdijkstra3673
    @casdijkstra36734 жыл бұрын

    Thank you for the great explanation. How would you do this for multiple particles? Just create another for-loop inside the for-loop?

  • @triskitman124
    @triskitman1245 жыл бұрын

    I've always wondered how to do this in matlab. thanks.

  • @kristenleenerman1351
    @kristenleenerman13515 жыл бұрын

    Great summary of animations in Matlab

  • @jimbarnes4047
    @jimbarnes40473 жыл бұрын

    fantastic kermit impression, helpful video too

  • @elijahleonen198
    @elijahleonen1988 ай бұрын

    AE501: Thank you for the great explanation and this will be very helpful when creating a movie for the HW!

  • @everettkinyon7602
    @everettkinyon76025 жыл бұрын

    So cool to see how this is done!

  • @eee8
    @eee83 жыл бұрын

    Very good presentation Chritopher!

  • @AlejandroMartinez-nv9ri
    @AlejandroMartinez-nv9ri8 ай бұрын

    AE501: I wasnt aware Matlab was capable of this. Thank you!

  • @umangkumarpatel3661
    @umangkumarpatel36618 ай бұрын

    Thank you very much it helped me a lot...

  • @gitarplayer13
    @gitarplayer135 жыл бұрын

    AE511 great video, I liked the example with your dog.

  • @kaisemuw7074
    @kaisemuw70745 жыл бұрын

    AE 511. This is a very useful function that I did not know MATLAB had.

  • @alisoncaprioli4861
    @alisoncaprioli48614 жыл бұрын

    Nice tutorial! Thanks for sharing!

  • @mylesdeluca8789
    @mylesdeluca87895 жыл бұрын

    Great help for the HW!

  • @alessandrogiustina6788
    @alessandrogiustina67884 жыл бұрын

    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??

  • @jacobcarroll3933
    @jacobcarroll39335 жыл бұрын

    Awesome use of Matlab!

  • @Zuwwar
    @Zuwwar4 жыл бұрын

    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.

  • @SScook206
    @SScook2064 жыл бұрын

    Thanks for the demo!

  • @FerchoGarcia123
    @FerchoGarcia1235 жыл бұрын

    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.

  • @helentat121
    @helentat1215 жыл бұрын

    The analogy was helpful, thanks

  • @hithere8541
    @hithere85413 жыл бұрын

    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?

  • @sajeew
    @sajeew4 жыл бұрын

    This video really helpful. Thank you

  • @helenkuni9039
    @helenkuni90395 жыл бұрын

    Very useful and interesting, thanks!

  • @mostafaahmadi4998
    @mostafaahmadi49984 жыл бұрын

    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

    @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

    @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.

  • @theindussaga3457
    @theindussaga34573 жыл бұрын

    This dude knows his stuff.

  • @ChristopherLum

    @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!

  • @emiric101
    @emiric1013 жыл бұрын

    This is the greatest thing I've ever seen. in my life

  • @ChristopherLum

    @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!

  • @sajeew
    @sajeew4 жыл бұрын

    thank you This video helped in my assingment Sam

  • @marissalamadrid8190
    @marissalamadrid81905 жыл бұрын

    Clear explanation!

  • @christophersanchez2256
    @christophersanchez22564 жыл бұрын

    Thanks for the video. It came in handy for the homework.

  • @jamesferrese2350
    @jamesferrese23505 жыл бұрын

    Didn't know you could do this! Cool!

  • @erezsampson
    @erezsampson5 жыл бұрын

    Thank you for the informative video, helped me a lot!

  • @ChristopherLum

    @ChristopherLum

    5 жыл бұрын

    I'm glad it was helpful thanks for watching

  • @neoblackcyptron
    @neoblackcyptron2 жыл бұрын

    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

    @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

  • @poppy5852
    @poppy58524 жыл бұрын

    This was a fantastic video. Clearly explained.

  • @ChristopherLum

    @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!

  • @ishangawai6164
    @ishangawai61644 жыл бұрын

    Thank you Chistopher Lum. Your video is super helpful.

  • @ChristopherLum

    @ChristopherLum

    4 жыл бұрын

    I'm glad it was helpful thanks for watching!

  • @jerrywu155
    @jerrywu1553 жыл бұрын

    Thanks for the video. May I ask how should I type at first for loading a csv file to create a movie?

  • @robertdelossantos1936
    @robertdelossantos19364 жыл бұрын

    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.

  • @osamahamin8145
    @osamahamin81455 жыл бұрын

    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

    @ChristopherLum

    5 жыл бұрын

    Thanks I'm glad it was helpful

  • @krisstaniszewski7457
    @krisstaniszewski74574 жыл бұрын

    Very well done and very helpful and at the same time it is very practical. Thank you for helping me to learn MatLab.

  • @ChristopherLum

    @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.

  • @gregweiland8070
    @gregweiland80705 жыл бұрын

    Great tutorial!

  • @maciejtanski5302
    @maciejtanski53027 ай бұрын

    Very helpful. Thank you

  • @ryancazin5930
    @ryancazin59305 жыл бұрын

    Great explanation!

  • @muhammaddanish7588
    @muhammaddanish7588 Жыл бұрын

    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.

  • @bensaidismail5394
    @bensaidismail53944 жыл бұрын

    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

  • @RajChhabraUW
    @RajChhabraUW8 ай бұрын

    AE501: I've never tried to make animations of plots. Very interesting!

  • @jonathonlaird6279
    @jonathonlaird62794 жыл бұрын

    thanks for the video. I liked the dog and the giraffe.

  • @timproby7624
    @timproby76242 жыл бұрын

    [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

    @ChristopherLum

    2 жыл бұрын

    Yes, I make a lot of mistakes along the way 😊

  • @marilynjasmer8365
    @marilynjasmer83655 жыл бұрын

    Nice way to visualize data in matlab

  • @alifarokhisarijloo6589
    @alifarokhisarijloo65894 жыл бұрын

    I love your account. Fantastic

  • @Jitatman
    @Jitatman4 жыл бұрын

    Thank you sire. This was SO helpful

  • @ChristopherLum

    @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!

  • @sumanraypramanik3798
    @sumanraypramanik37983 жыл бұрын

    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?

  • @shashankmurli9634
    @shashankmurli96343 жыл бұрын

    Excellent explantion!! Thanks for such great content!

  • @ChristopherLum

    @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!

  • @mehrannorouzi1309
    @mehrannorouzi13092 жыл бұрын

    Dear Christopher, i have a problem , i want to apply velocities in my trajectory how should i do that?

  • @ayushkumarsingh5018
    @ayushkumarsingh50184 жыл бұрын

    Great lecture sir

  • @ashkabrawn
    @ashkabrawn5 жыл бұрын

    Lol...the real 🐕..so cute.great timing

  • @dirkalferink15
    @dirkalferink155 жыл бұрын

    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??:)

  • @mrcjg42
    @mrcjg425 жыл бұрын

    Ok but when is your MATLAB feature film coming out??

  • @garrettdavis4665
    @garrettdavis46654 жыл бұрын

    Neat demo!

Келесі