Тёмный

Making Videos From Figures In Matlab 

CodingLikeMad
Подписаться 3,4 тыс.
Просмотров 30 тыс.
50% 1

This video shows how to make Avi (movie) files out of figures in matlab using the videoWriter object.

Опубликовано:

 

29 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@ironpine5815
@ironpine5815 5 лет назад
Great video - helped me so much! Short, sweet, and to the point.
@alessandrastellacaporale5256
@alessandrastellacaporale5256 4 года назад
Thank you so much, this was exactly what I was looking for! Really helpful!
@Bhanuprakash-xl6ti
@Bhanuprakash-xl6ti Год назад
Thanksss a ton!! Straightforward and very helpful
@sameralnaseri4105
@sameralnaseri4105 4 года назад
very useful stuff. Thanks a lot !
@newchannel30
@newchannel30 3 года назад
excellent explanation, thanks :)
@theNeuo13
@theNeuo13 4 года назад
Thanks for the tutorial. I also watched your tutorial about VideoReader. I am trying to read then write an MP4 file, but I always find the output file compressed if compared to the original one. Do you know how to make Matlab write the video with the same spec of the the original one?
@berenicecervantes4275
@berenicecervantes4275 4 года назад
How would the syntax differ if you were importing a video file and trying to rewrite it in another format?
@y.mauriciomunoz-munoz9990
@y.mauriciomunoz-munoz9990 2 года назад
Thank you very much!
@CodingLikeMad
@CodingLikeMad 2 года назад
You're welcome!
@adoniasyoseph3290
@adoniasyoseph3290 3 года назад
Thank you!!
@CodingLikeMad
@CodingLikeMad 3 года назад
You're welcome!
@helonayala
@helonayala 4 года назад
Thanks! Maybe sharing the code would be good next time. Awesome work.
@abbeyhamilton3746
@abbeyhamilton3746 2 года назад
Awesome video! Do you perhaps know where the code is for the cone animation?
@CodingLikeMad
@CodingLikeMad 2 года назад
Sorry for the late reply - which image do you mean by the code animation? Some of these I can share, others are a bit more difficult for me to give. Thanks!
@ANALOGTecHII
@ANALOGTecHII 5 лет назад
Hi how you make this video I am also planning to start matlab tutorials video.. I like your videos can we be frnd.
@CodingLikeMad
@CodingLikeMad 5 лет назад
Hi ANALOG TecHII ! I guess it depends on what you mean by 'how'. The video figures are generated as described in the video - frame by frame saving. The video itself was recorded with OBS (a streaming software that happens to do excellent screen recording in addition to broadcasting), and I edited it with lightworks (which I don't really recommend - I would switch if I wasn't already invested in it's UI). And hey, who doesn't want more friends, right? :)
@umaRFTW
@umaRFTW 3 года назад
Is it possible to animate particles within a reactor reacting and forming products? The idea here is that the reactants will have a different colour to product particles.
@CodingLikeMad
@CodingLikeMad 3 года назад
If you have a spatial coordinate set and particle identity, then yes, that can be done. Generating the particular coordinates and velocities over time may be a bigger issue mind you. Several of my examples in the opening sequence involved this. The best approach is to make a function that shows what you are interested in at one instant in time, and then repeatedly call this function to generate the frames. I'd suggest making a simpler toy model first to build out your tooling first.
@umaRFTW
@umaRFTW 3 года назад
@@CodingLikeMad Ah, so say if I didn't want to animate the particles but instead have a colour gradient against the length of the tube. ie, if initial reactant colour is red and blue, then at z=0 where they enter, the colour would be red and blue. But towards the end of the tube once the reactants have reacted to form say yellow, then the tube would be yellow assuming full conversion. The idea is that I want to tie the colours to their concentration values. ie if reactant red drops to 0 concentration at 50% through the tube, there would be no red present. Is this possible? I am confused how to run that
@CodingLikeMad
@CodingLikeMad 3 года назад
If you look through my video list, you'll see I have one on 3d plotting. I believe that will answer some of this. You can also manually plot spheres(or other shapes) and color them if you need more flexibility than you get from the plot3d etc. functions.
@govindsahu15
@govindsahu15 2 года назад
Thanks but the exported video quality was not good. Can you suggest how to improve it?
@bmontibeller4770
@bmontibeller4770 4 года назад
how can I make the 5º graphic with the waves passing by the screen?
@CodingLikeMad
@CodingLikeMad 4 года назад
I guess you mean the 5th (bottom middle) image? If so, have an equation to plot: sin( f.*x + w*t). X is a fixed vector, while t changes each frame. F and w are constant
@mostafataleb2825
@mostafataleb2825 2 года назад
Hi sir , I wanna you to explain in video , how to simplification video matrix (4d) and convert all video frames to binary, and then returns it to original shape, and play the video, please help me
@gayatri3482
@gayatri3482 3 года назад
How to create movie from datafile?
@CodingLikeMad
@CodingLikeMad 3 года назад
I guess I'm not sure what you mean by that. The tricks I show in this video depend on you plotting the data. Once you have loaded it, and written a plotting routine, this should work for you.
@gayatri3482
@gayatri3482 3 года назад
@@CodingLikeMad close all v = VideoWriter('exp3Video.avi'); open(v); a = load('alpha=50xl=0.5wce=0_003ds1000final.out'); for k = 1:1000:64 X = a(:,1); Vy = a(:,4); plot(X,Vy); xlim([0,0.5]); ylim([-0.01,0.01]); frame = getframe(gcf); writeVideo(v,frame); end close(v) Its not working
@CodingLikeMad
@CodingLikeMad 3 года назад
I think this is not a good place for debugging code, I'd suggest the math works forums or the matlab subreddit. That said, I do notice your for loop line looks to have an error in it at leaat.
@gayatri3482
@gayatri3482 2 года назад
@@CodingLikeMad Thank you so much.
Далее
MATLAB 2D Fluid Simulation
0:21
Просмотров 158 тыс.
How the hell is this done#joker #shorts
00:14
Просмотров 2,2 млн
I Built a SECRET McDonald’s In My Room!
36:00
Просмотров 17 млн
Multiple Tabs in ONE Figure 😱 | MATLAB #shorts
0:49
How to Screen Record with VLC Media Player for Free
2:56
How the hell is this done#joker #shorts
00:14
Просмотров 2,2 млн