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/

Комментарии • 25

  • @charmendro
    @charmendro 3 года назад +1

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

  • @gl7389
    @gl7389 5 месяцев назад +1

    Super intuitive, thanks Dr.

  • @renzostefanmp7937
    @renzostefanmp7937 2 года назад +1

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

  • @tonihullzer1611
    @tonihullzer1611 2 года назад +2

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

  • @EarlWallaceNYC
    @EarlWallaceNYC 2 года назад +2

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

  • @benjamindeworsop8348
    @benjamindeworsop8348 3 года назад +1

    Awesome video, very clear with good examples

  • @mohamedtaha8145
    @mohamedtaha8145 Год назад +1

    This is fantastic sir. Thank you very much.

  • @user-my5qk5xu1d
    @user-my5qk5xu1d 11 месяцев назад +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  11 месяцев назад

      They are rounded values. Sorry for any confusion.

    • @user-my5qk5xu1d
      @user-my5qk5xu1d 11 месяцев назад +1

      @@empossible1577 No worries, thanks a lot for clarifying

  • @DeepIntelAcademy
    @DeepIntelAcademy 2 года назад +1

    thanks a lot!💮💮

  • @jhanolaer8286
    @jhanolaer8286 Год назад +1

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

    • @empossible1577
      @empossible1577  Год назад

      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.

  • @Mariane466
    @Mariane466 3 года назад +1

    Thanks!

  • @charmendro
    @charmendro 3 года назад +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  3 года назад

      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.

  • @dufresne4504
    @dufresne4504 2 года назад

    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  2 года назад

      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.

  • @brijesh0808
    @brijesh0808 3 года назад

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

    • @empossible1577
      @empossible1577  3 года назад +3

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

    • @brijesh0808
      @brijesh0808 3 года назад

      @@empossible1577 thanks