Lecture -- Meshgrid

Sdílet
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

Komentáře • 25

  • @gl7389
    @gl7389 Před 4 měsíci +1

    Super intuitive, thanks Dr.

  • @renzostefanmp7937
    @renzostefanmp7937 Před 2 lety +1

    Such a great video. It was exactly what I needed. Thanks a lot!

  • @benjamindeworsop8348
    @benjamindeworsop8348 Před 3 lety +1

    Awesome video, very clear with good examples

  • @charmendro
    @charmendro Před 3 lety +1

    This helped me understand why meshgrid is so important. Thanks!

  • @tonihullzer1611
    @tonihullzer1611 Před 2 lety +2

    Really cool, educative, well presented, thumps up and thanks for your work!

  • @EarlWallaceNYC
    @EarlWallaceNYC Před 2 lety +2

    This was very informative, even for a Python programmer like myself. Thanks.

  • @mohamedtaha8145
    @mohamedtaha8145 Před rokem +1

    This is fantastic sir. Thank you very much.

  • @Mariane466
    @Mariane466 Před 3 lety +1

    Thanks!

  • @DeepIntelAcademy
    @DeepIntelAcademy Před 2 lety +1

    thanks a lot!💮💮

  • @dufresne4504
    @dufresne4504 Před 2 lety

    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!

    • @empossible1577
      @empossible1577  Před 2 lety

      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.

  • @jhanolaer8286
    @jhanolaer8286 Před rokem +1

    Hi Sir, is this applicable for making a fluid simulation through meshgrid?

    • @empossible1577
      @empossible1577  Před rokem

      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.

  • @charmendro
    @charmendro Před 3 lety +1

    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?

    • @empossible1577
      @empossible1577  Před 3 lety

      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.

  • @user-my5qk5xu1d
    @user-my5qk5xu1d Před 10 měsíci +1

    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 ?

    • @empossible1577
      @empossible1577  Před 10 měsíci

      They are rounded values. Sorry for any confusion.

    • @user-my5qk5xu1d
      @user-my5qk5xu1d Před 10 měsíci +1

      @@empossible1577 No worries, thanks a lot for clarifying

  • @brijesh0808
    @brijesh0808 Před 3 lety

    why are we increasing the values of y axis when we are going downwards?

    • @empossible1577
      @empossible1577  Před 3 lety +3

      MATLAB does this because it assumes everything is a matrix and that is the convention in mathematics.

    • @brijesh0808
      @brijesh0808 Před 3 lety

      @@empossible1577 thanks