Extract data from a matlab figure file

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • In this video, I will be showing you how to extract or read data from saved matlab figure file (*.fig) format. First I will be showing you how to extract data from line plots, then I will be showing you how
    to extract data from colorplots or 3D plots and save the data as ASCII files.
    Don't forget to like and subscribe "Dr Manab" UA-cam channel to get updates of all upcoming videos. Let me know in the comments below if you have any questions.
    Thanks for watching.
    ❤️SUBSCRIBE ► bit.ly/drmanab
    👉 Matlab tutorial full playlist: • Matlab for Physics and...
    👉 Python tutorial full playlist: • Python Tutorial Basics...
    I upload new videos every week.
    Thank you !!

КОМЕНТАРІ • 51

  • @Sosuke70
    @Sosuke70 5 років тому +7

    thank you so much , you don't know how such a simple thing has improved my poor Phd life!

  • @darielcomodanielperoconr4340
    @darielcomodanielperoconr4340 9 місяців тому

    Thank you man, you saved me, I forgot to save data for a project I had to pass manually the first time and the deadline was tomorrow, thankfully I kept the graphs and you uploaded this

  • @amindin6295
    @amindin6295 4 місяці тому +1

    great video

  • @user-yf3vf1qu8q
    @user-yf3vf1qu8q 11 місяців тому +1

    Thank you

  • @user-sd2cd2vj1f
    @user-sd2cd2vj1f 2 місяці тому

    Great. How do I extract NGSIM tragectory information?

  • @MrManas008
    @MrManas008 3 роки тому

    Thank you bro

  • @raulabreudeassis6772
    @raulabreudeassis6772 2 роки тому

    Thanks!!

  • @ulanbekauyeskhan6106
    @ulanbekauyeskhan6106 3 роки тому +1

    how do you extract a desired curve data points if you have more than one curve

  • @sushilkumarsingh3182
    @sushilkumarsingh3182 2 роки тому

    Sir what changes we have to do in code for 3d data

  • @SatyaPalPMT
    @SatyaPalPMT Рік тому

    hey sir
    if one graph contains 100 data points , can we get more than 100 data points like 500 data points

    • @DrManab
      @DrManab  Рік тому

      Do you mean you want to do an interpolation?

  • @ivandwiputra9839
    @ivandwiputra9839 4 роки тому

    I get the array of ccordinates after that i want to plot the coordinates one by one, after i plot the second coordinates, i can delete the first and so on until all coordinates, so i can get animation when the coordinates is moving . How to get that?

    • @DrManab
      @DrManab  4 роки тому

      Its very easy, create a loop and give
      a pause/delay between each plots, this will mimic like an real animation.

    • @ivandwiputra9839
      @ivandwiputra9839 4 роки тому

      @@DrManabin your example only 1 graphics, if I have 4 graphics how I get the array of coordinate?thank you

    • @DrManab
      @DrManab  4 роки тому

      @@ivandwiputra9839 its very straight forward even if you have multiple graphics. Once you load the fig file and extract the mat file, open the mat file you can see the column and rows for different whatever graphics you have, the 2d color plot is the generalization of many graphics.

  • @rahulkatike6837
    @rahulkatike6837 3 роки тому

    sir, from some mathematical equations I got one plot, from that I want to get a matrix and an image for the corresponding equations. Is that possible in MATLAB?? If yes, can you please explain me??

    • @DrManab
      @DrManab  3 роки тому

      yes offcourse its possible

    • @rahulkatike6837
      @rahulkatike6837 3 роки тому

      @@DrManab please tell me how to find out the registration error between two images?

  • @prateekbhadauria7004
    @prateekbhadauria7004 4 роки тому

    i want to extract xand y cordinates at equidistance on any graph kindly suggest if possible.

    • @DrManab
      @DrManab  4 роки тому

      The tutorial does not involve any interpolation, I suppose what you are talking. The x and y data in this process will be the x and y data what you have in your matrix. You can easily make equidistant points by doing a interpolation.

    • @yifanwang8626
      @yifanwang8626 2 роки тому

      Hi Have you solve this? I have same problem

    • @Nikesh977
      @Nikesh977 2 роки тому

      Hi, did you solve it? I have same problem.. I first ploted a curve using random variables and intervals . Now, I need values at regular interval. How can I do it
      ?

  • @yuqiu7207
    @yuqiu7207 6 років тому

    I just try this on contour plot which is closed curve. I don't know why it doesn't work. Can I change the parameter 'line' and get the result?

    • @DrManab
      @DrManab  5 років тому

      what you are trying to plot? You must check your data, is it 3D(x,y,z) or simply 2D meaning (x,y)

  • @SHtechnology
    @SHtechnology 5 років тому

    I apply you code in matlab but it show error message."Subscripted assignment dimension mismatch." please help me!
    Thanks,

  • @naveedarif3565
    @naveedarif3565 5 місяців тому

    how did you access the points of that image in matlab?

    • @DrManab
      @DrManab  5 місяців тому +1

      Hello Naveed, Thank you for your comment. The key point here is that if you have any figures saved in a *.fig file, the data is already embedded within the fig file.

    • @naveedarif3565
      @naveedarif3565 4 місяці тому

      @@DrManab sir i have the point cloud 3D image save in ply. format and we are very stuck in accessing the points in 3D image of point cloud in MATLAB....please sir humbly requested to help us in this...

    • @DrManab
      @DrManab  4 місяці тому

      @@naveedarif3565 Thanks for your comment, but I have no idea how to extract data from ply format. Even digitization would be hard since its a 3D data

    • @naveedarif3565
      @naveedarif3565 4 місяці тому

      @@DrManab Dear sir! I've the 3D image and w need to embed the data within it. So, our mentor told us that first learn that how to access the points e.g (xyz coordinate, rgb values) in the MATLAB. please dear sir i'm very worried help me.

  • @_globetrotter_diaries
    @_globetrotter_diaries 4 роки тому

    Hi,. I would like to know how to extract frequency and time data from a scalogram in matlab

    • @DrManab
      @DrManab  4 роки тому

      Hi, you can use cwt for 1D and cwtft2 functions in matlab to generate the scalogram, and then you can extract the frequency or time from data, by indexing the desired value of frequency/time.

    • @_globetrotter_diaries
      @_globetrotter_diaries 4 роки тому

      Hi, yes when we use cwt for 1d, the complex values will be stored in wt and f stores the frequency. [wt, f]=cwt(x,fs). But the diagram have time in x axis and frequency in y axis. So if we give wt(f1) we will get a complex value in wt for that particular frequency. But I need to know the time at which f1 occurs

  • @snnagg4027
    @snnagg4027 5 років тому

    Thank you for video, because of korean version guides are all the bull shit garbage. so, I am happy to see this fantastic video.

  • @farinazkouhrangiha3283
    @farinazkouhrangiha3283 5 років тому

    in command h=findobj|(gca, 'Type' , 'line'). what is gca>

    • @remapears
      @remapears 5 років тому

      gca is current axes or chart

  • @theodorepoulos6825
    @theodorepoulos6825 6 років тому

    can this be done with jpeg?

    • @DrManab
      @DrManab  6 років тому

      No this cannot be done with jpeg in matlab. However, you can digitize the jpeg image and get the data in other software like originpro

  • @ihsan187
    @ihsan187 6 років тому

    thank you, but the music is too loud and annoying. we can barely listen to your voice

    • @DrManab
      @DrManab  5 років тому +2

      Thank you for your comments. In future videos, I will remove all annoying sounds.

  • @emmanuelnzediegwu8190
    @emmanuelnzediegwu8190 3 роки тому

    Please can you help me sort this error. I try to extract data from my graph but get this : Conversion to double from cell is not possible.
    Error in extract_data (line 14)
    A(:,1)=x;

    • @DrManab
      @DrManab  3 роки тому

      which version of matlab are you using?

    • @alibukht1194
      @alibukht1194 3 роки тому

      I am using the latest version (2020b) and I am getting the same error.

    • @DrManab
      @DrManab  3 роки тому

      @@alibukht1194 email me the *.fig file. Let me check

    • @alibukht1194
      @alibukht1194 3 роки тому

      @@DrManab I have emailed you the file.

    • @DrManab
      @DrManab  3 роки тому

      @@alibukht1194 I have emailed you the code. Thank you

  • @LCEducacion
    @LCEducacion 2 роки тому

    no sirvió de nada pero gracias