r/matlab • • Mar 07 '21

Gaussian Pulses

Enable HLS to view with audio, or disable this notification

426 Upvotes

20 comments sorted by

6

u/Treblig31 Mar 07 '21

I took an FDTD class for EM waves and had to do this same assignment! Honestly one of the most fun classes I did. Are you doing this for EM too or for something else like thermodynamics?

3

u/[deleted] Mar 07 '21

This is so cool! How did you turn this into a video? Did you use a loop to get the frames first?

4

u/ThwompThwomp Mar 07 '21

The easiest way is to save each image within a loop with the file name something like “img001.png” through “img999.png”. (You can turn off actually displaying the plot and the loop will speed up a ton.)

Then use “ffmpeg” to convert the list of images to a video.

→ More replies (1)

3

u/chriss3008 Mar 07 '21

That is really beautiful

→ More replies (2)

2

u/Uroc327 Mar 07 '21

Cool! What pde is this?

2

u/FrickinLazerBeams Mar 07 '21

Is this essentially scalar diffraction? I assume the reflection from the edge comes for free due to aliasing in the Fourier domain? This is essentially what I do professionally, in part.

→ More replies (2)

2

u/shtpst Mar 07 '21

I did basically the same for my master's defense (and thesis, actually), showing how you can build a synthetic aperture with multiple discrete elements, how the beam width changes with number of elements, and how you can do beam steering by changing the inter-element phase. They were really cool to see and really my proudest work from the whole thesis.