MATLAB meshgrid, surf, and mesh 3D plotting

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

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

  • @kasulavineethkumar3510
    @kasulavineethkumar3510 3 года назад +2

    this is world class!!! thank you soo much

  • @AwaisKhan-mh6cd
    @AwaisKhan-mh6cd 2 года назад +2

    such an underrated video, better than my damn university professor teachings 😂

  • @vijaychauhan9990
    @vijaychauhan9990 3 года назад +2

    Nice explain

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

    Thanks for the video! Question: Once I have a 3D surface, is there any way to interpolate to find a Z value based on an X1 and X2 values that dont have a Z value defined? In my case, Z is not based on a formula.

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

    thanks for the video. Please I want to plot a 3D surf of two equations united by ‘if’ and ‘else’ statements. For example. “if X>Y Z=2X+Y elseif X

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

    I love the explanation, it's so clear!
    Anyway could you help me to draw a 3d graphs but rather different than these one on video. My data is of the format (x,y,z,T), where x,y and z are axes indicating a point and T is the colour value at the specified point. I'm so thankful if you could make video to solve my problems, thanks in advance!

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

      Great question. To be able to see individual points on a 3D graph you will want to select a point style, otherwise the points will be too small to view. Ex. to create a red diamond: plot3(0,0,0, 'rd'). and since you want more than one point to be displayed on the graph use: hold on command at the beginning of the program. If you are given the color in a variable T. ex T='r' then you can combine it with a shape: strcat(T, 'd') to use as the 4th argument to plot3. If you need me to create a video, send me some of the exact x,y,z, T values and any other requirements and I can create a video today.

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

      @@PainlessProgramming first of all thanks for the quick response. yes it will be very helpful if you could make a video because I don't know much about 3D graphics. here are some of my data in (x, y, z, T) format: (3,25,300,Yellow),(2,25,500,Green),(1,75,700,Red),(0,50,500,Blue),(-1,50,300,Yellow),(-2,50,500,Green),(-3,75,700,Red). and could you show me how to plot in a shape other than points, like a mesh or maybe a surface (if it's possible). Once again I thank you very much for the help.

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

      @@andremartin7059 ruclips.net/video/9TSRZg6dbwg/видео.html - hope this helps you visualize the data.

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

    Hello there, thanks for the great video!
    I have a similar program that I need to do in MATLAB.
    I have around 100 rows of X,Y,Z points as a data file, to be considered as a matrix.
    And 100 rows in 1 column of binary data, as a vector.
    I need to slice the 100 rows of xyz matrix data, with the vector data to obtain a 3D model.
    Could I contact you in person, maybe an email, regarding this problem?
    I do have a rough code, but would like if I get some help from someone who's well versed in MATLAB.

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

    >> view(4)
    *Computer explodes*