How can I find the column values for a given row?
1 view (last 30 days)
Show older comments
Hello. I have a txt file with 1000000 rows and 5 columns and I want to know the values of the 400000 row. Can anyone give me an explicit solution for this? I've tried several ways with the find command.
-5,63200000000000 -35,4210000000000 -3,63965000000000 -37,5098000000000 2,88661461967128
-5,63200000000000 -35,4210000000000 -3,64414000000000 -37,5098000000000 2,88351743875427
-5,63200000000000 -35,4210000000000 -3,64863000000000 -37,5098000000000 2,88042392659483
-5,63200000000000 -35,4210000000000 -3,65312000000000 -37,5098000000000 2,87733409502616
-5,63200000000000 -35,4210000000000 -3,65761000000000 -37,5098000000000 2,87424795591821
-5,63200000000000 -35,4210000000000 -3,66210000000000 -37,5098000000000 2,87116552117777
-5,63200000000000 -35,4210000000000 -3,66659000000000 -37,5098000000000 2,86808680274848
-5,63200000000000 -35,4210000000000 -3,67108000000000 -37,5098000000000 2,86501181261090
-5,63200000000000 -35,4210000000000 -3,67557000000000 -37,5098000000000 2,86194056278253
-5,63200000000000 -35,4210000000000 -3,68006000000000 -37,5098000000000 2,85887306531787
-5,63200000000000 -35,4210000000000 -3,68455000000000 -37,5098000000000 2,85580933230844
-5,63200000000000 -35,4210000000000 -3,68904000000000 -37,5098000000000 2,85274937588285
-5,63200000000000 -35,4210000000000 -3,69353000000000 -37,5098000000000 2,84969320820681
-5,63200000000000 -35,4210000000000 -3,69802000000000 -37,5098000000000 2,84664084148317
-5,63200000000000 -35,4210000000000 -3,70251000000000 -37,5098000000000 2,84359228795198
-5,63200000000000 -35,4210000000000 -3,70700000000000 -37,5098000000000 2,84054755989052
-5,63200000000000 -35,4210000000000 -3,71149000000000 -37,5098000000000 2,83750666961331
-5,63200000000000 -35,4210000000000 -3,71598000000000 -37,5098000000000 2,83446962947215
-5,63200000000000 -35,4210000000000 -3,72047000000000 -37,5098000000000 2,83143645185619
My file is similar to the one I placed above.
0 Comments
Accepted Answer
madhan ravi
on 18 Jun 2020
data = dlmread('mytext.txt'); % if you face memry issues use tall arrays
data(4e5,:)
0 Comments
More Answers (0)
See Also
Categories
Find more on Multidimensional Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!