In general if you want to copy or cut data from a text file we can just
drag it by mouse or we can use CTRL+C or CTRL+X. But this works only for
row level. Some times we need to extract column wise. For example in an
experiment we got text file in which we don't want some columns or if
we copy some source code from internet it may consists unwanted number
line.
In such cases let me tell the simplest technique to get data column wise
data from a text file. For this we need a small software called
notepad++. Now-a-days this is a very popular software and every body is
having this. If you don't have this software download here.
Steps to extract data:
Step 1: Open your text file in notepad++ (Or you can just drag and drop on to nodepad++)
Step 2: Keep your cursor at the starting point of the column which ever you want to extract/cut hold ALT button and drag it.
Step 3: Copy/Cut the data and Paste it in a new file.
Method : 2
If you have Microsoft word, then copy your text and paste in MS-Word.
Hold ALT + left key, drag and copy text. It is the easiest and simple
technique.
Method : 3 If you have eclipse, open file in eclipse and hold press Alt+Shift+A, then editor turns into block editor, now select empty block that you want to delete and delete it. Done
Step 2: Copy the grabit.m file in your current directory. In case of windows users better to copy the file in C:\Documents and Settings\CURRENT_USERNAME\my Documents\Matlab
(replace red colored text by system username)
Now I am going to extract data from the following graph. You can use your own graph from which data to be extract.
Step 3: After copying the grabit.m file, type grabit in matlab command window, then you will see a screen like this
Click on Load Image
And load the graph from which you want to extract data
Then below load image button , there is a button called calibrate, click on calibrate button,
Click on x axis near the origin and enter a value for a minimum of x, after that click far away from the origin on x axis and enter for a maximum value of x. Do the same job for y axis also...
Now start grabbing points from the graph by click on graph carefully. You can also view the preview of the collected points in the upper rightmost side.
After completion of grabbing points, then click on grabbing points button,
Finally in the right side panel, you can find a file with name ' Data001 '. This is the required file. You can save data as text file(.txt) or matlab file(.m) by clicking save as... button .
How to extract data from a file, how to extract data from jpeg, extract data from jpeg, extract data from jpg, using grabit, how to use grabit, how to use grabit for matlab, matlab grabit, usage of matlab grabit, extracting data from a scanned copy, extracting data fraom a graph, extract data from an image, data from scanned copy, data from scanned copy, data from jpeg, data from jpeg, data extraction from a file using matlab, data extraction from an image, data extraction from a graph, how to get data from a graph, get data from an image, get data from jpeg, get data form jpg, get data from photo, extracting data from photo.....