Lecture -- Meshgrid
HTML-код
- Опубликовано: 22 авг 2024
- This lecture introduces the concept of a meshgrid in MATLAB and illustrates how it can be used to create a wide variety of geometries.
Be sure to visit the EMPossible Course website for updated lecture notes and course materials, as well as links to develop MATLAB codes. The Course page can be found here: empossible.net...
Check out all of the EMPossible course materials and workshops: empossible.net/
This helped me understand why meshgrid is so important. Thanks!
Awesome to hear!
Super intuitive, thanks Dr.
Such a great video. It was exactly what I needed. Thanks a lot!
Really cool, educative, well presented, thumps up and thanks for your work!
Thank you!
This was very informative, even for a Python programmer like myself. Thanks.
Great to hear!
Awesome video, very clear with good examples
This is fantastic sir. Thank you very much.
Thank you!!
5:16 From where did you get 0.3, 2.3,.....,42.3 ?These are not squares of 0.5,1.5,......,6.5. Or am I missing something ?
They are rounded values. Sorry for any confusion.
@@empossible1577 No worries, thanks a lot for clarifying
thanks a lot!💮💮
Hi Sir, is this applicable for making a fluid simulation through meshgrid?
The meshgrid technique is used for building shapes into arrays for simulations. So if you are simulating fluids moving around a wing or some sort of foil, you could use meshgrid techniques to build that device into an array to be simulated.
Thanks!
When u do RSQ = X.^2 + Y.^2, what really goes on under the hood? Is it adding each element [n,n] in X to each element [n,n] in Y?
Yes. First, MATLAB will square every element in X, then it will square every element in Y, and then add those two new arrays to get RSQ without affecting any of the values in X or Y.
Hi,
I'm trying to create an image with equally spaced geometries (basically a square with polkadots). Is there some way to place individual radial meshgrids next to each other?
Thanks!
Are you just trying to create a picture or are you building a device into an array for a simulation? If you are just trying to draw a picture, don't do it this way at all. use commands like fill() to draw your pictures.
If you are truly building this into an array, the best approach depends on how large your grid is and how many circles you want to add. If the grid is very large and you want to add a lot of circles, I think it may be best to build a single unit cell and then copy it throughout the entire large array. If there are only a few, you can calculate a new meshgrid for each circle, centered where the circle should be added. Then, use a repeating Boolean operation to keep adding circles. This is very simple, but will not work efficiently for large grids or lots of circles.
why are we increasing the values of y axis when we are going downwards?
MATLAB does this because it assumes everything is a matrix and that is the convention in mathematics.
@@empossible1577 thanks