MATLAB for Beginners. How to get the coordinates of points on a plot in Matlab

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025
  • This Video will show you how to use ginput command to get the coordinates of any point on a plot in Matlab.

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

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

    Thanks! It helped me do my aerospace homework

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

      Glad this helped.
      This was actually intended for my Aeronautics Engineering students to do their lab homework !
      Small world!

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

    Thank u so much mate
    Really a great explanztion
    Can u plz tell me how to calculate the difference between 2 points in cm
    Thnx again
    Ahmad

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

      Hi, thank you for watching! Not sure what you mean by "difference" between the two points but if you mean the "distance between two points it is simply the famous formula of sqrt( (x(2)-x(1) )^2 + ( y(2)-y(1) )^2).

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

    Thank you very much

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

    Amazing! can you please tell how to find y values for a specific range of x values from the graph?

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

    very informative.. can you please make a video on how we can make changes in graph plot by selecting 2 points on graph. like for example if we select two points on graph , what can we do to convert it in linear plot if its non linear?

  • @MdAthick
    @MdAthick 5 лет назад +2

    Thank you for the video can you please tell how to calculate the angle between two pickup points ?

    • @BahmanFarzi
      @BahmanFarzi  5 лет назад +2

      Thank you for watching. The Arctangent function converts slopes to angles. For instance, arctan(0.2) gives the angle with the x-axis of a line that makes an slope of 0.2 .
      So Here you will simply use the atan command that calculates Arctangent in Matlab. Simply use the following line:
      teta=atan(slope);

  • @amadousow6598
    @amadousow6598 4 года назад

    Thank you for the video, how to use app designer ginput in appDesigner

  • @yasminbarazandegan
    @yasminbarazandegan 5 лет назад +1

    Thanks!

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

    Thanks a lot for the explanztion, I have a question, I have a GUI, and I can use the ginput in that GUI, however, I need to extract the values of X and Y and use that values for trim a signal, ¿How can I extract that values in the GUI?

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

      Hi Gabriela, Thank you for watching. I do not know what your exact application is. if you provide more info I could help better. But if you have a curve image and you want to get the coordinates you can use a Matlab add on called "grabit". It grabs the data for you from any curve very easily. watch the 3 minute instructions here: ruclips.net/video/9P3PVLjW0bw/видео.html

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

      @@BahmanFarzi I have an application that catch the signal of an earthquake and prosses it(sorry for the bad english), and I need to extract the X and Y values to trim the signal and make a kind of zoom to the signal. I will try with the "gravit". Thanks a lot for the tip ☺️☺️

  • @vjp6
    @vjp6 4 года назад +1

    If i want multiple points to take from fig in terms of 100 nos. Eg: if i need y axis data for every 0.5 x axis value how can i get?

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

      While you can digitize a plot in Matlab using image processing toolbox functions, it is a lengthy process.
      You can easily do this with software like Get data Graph Digitizer or ImageJ .
      Let me know if you would be interested in me posting a video on how to do it.

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

    Sir, how can I determine coordinate of points of a image using Matlab

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

      Hi , Thank you for watching. If you have a curve image and you want to get the coordinates you can use a Matlab add on called "grabit". It grabs the data for you from any curve very easily. watch the 3 minute instructions here: ruclips.net/video/9P3PVLjW0bw/видео.html

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

    Hello sir, when I try and dock the graph as you do, it does not dock where "current folder is" but it instead docks where "Command Window" is. How can I fix this?

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

    How i can set y or x by set x or y

  • @ivandwiputra9839
    @ivandwiputra9839 4 года назад

    if i want pick many coordinates not only one how?

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

      Use grabit add-on in Matlab.
      Or ImageJ or similar plot digitizer software.

  • @elainetoh7179
    @elainetoh7179 4 года назад

    Hem

  • @iliabaziar882
    @iliabaziar882 4 года назад +1

    آقا این دوتا پیکان من غیب شد

  • @ambarapushameer7665
    @ambarapushameer7665 4 года назад

    The worst video clarity of whole RUclips history

    • @gnanaguru6118
      @gnanaguru6118 3 года назад +4

      I think you have to check your resolution.

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

      No, this was so informative for people looking for something special

  • @alexandrpetrov1110
    @alexandrpetrov1110 4 года назад

    Thanks!