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 !!
thank you so much , you don't know how such a simple thing has improved my poor Phd life!
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
great video
Thanka
Thank you
Great. How do I extract NGSIM tragectory information?
Thank you bro
Thanks!!
Welcome!
how do you extract a desired curve data points if you have more than one curve
Sir what changes we have to do in code for 3d data
hey sir
if one graph contains 100 data points , can we get more than 100 data points like 500 data points
Do you mean you want to do an interpolation?
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?
Its very easy, create a loop and give
a pause/delay between each plots, this will mimic like an real animation.
@@DrManabin your example only 1 graphics, if I have 4 graphics how I get the array of coordinate?thank you
@@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.
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??
yes offcourse its possible
@@DrManab please tell me how to find out the registration error between two images?
i want to extract xand y cordinates at equidistance on any graph kindly suggest if possible.
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.
Hi Have you solve this? I have same problem
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
?
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?
what you are trying to plot? You must check your data, is it 3D(x,y,z) or simply 2D meaning (x,y)
I apply you code in matlab but it show error message."Subscripted assignment dimension mismatch." please help me!
Thanks,
how did you access the points of that image in matlab?
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.
@@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...
@@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
@@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.
Hi,. I would like to know how to extract frequency and time data from a scalogram in matlab
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.
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
Thank you for video, because of korean version guides are all the bull shit garbage. so, I am happy to see this fantastic video.
in command h=findobj|(gca, 'Type' , 'line'). what is gca>
gca is current axes or chart
can this be done with jpeg?
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
thank you, but the music is too loud and annoying. we can barely listen to your voice
Thank you for your comments. In future videos, I will remove all annoying sounds.
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;
which version of matlab are you using?
I am using the latest version (2020b) and I am getting the same error.
@@alibukht1194 email me the *.fig file. Let me check
@@DrManab I have emailed you the file.
@@alibukht1194 I have emailed you the code. Thank you
no sirvió de nada pero gracias