Lecture -- Meshgrid
Vložit
- čas přidán 3. 09. 2020
- 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/academics/emp4...
Check out all of the EMPossible course materials and workshops: empossible.net/ - Věda a technologie
Super intuitive, thanks Dr.
Such a great video. It was exactly what I needed. Thanks a lot!
Awesome video, very clear with good examples
This helped me understand why meshgrid is so important. Thanks!
Awesome to hear!
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!
This is fantastic sir. Thank you very much.
Thank you!!
Thanks!
thanks a lot!💮💮
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.
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.
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.
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
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