MATLAB MATLAB: Handle Large GPS Data Sets Easily

  • Thread starter Thread starter beyondlight
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
To analyze a large set of GPS measurement data in MATLAB, users can create an array by formatting the data correctly. One effective method is to use the syntax A = [ ... value1 ... value2 ... ... ]; where each value is separated by ellipses for continuation across lines. Alternatively, users can utilize the dlmread function to import data directly from a file, as indicated by the reference to the MATLAB documentation. If issues arise with dataset commands, ensuring the correct data format is crucial, and users can also manually copy and paste data into an existing array in MATLAB's array view.
beyondlight
Messages
64
Reaction score
0
I have to analyze a large set of GPS measurement data in MATLAB but when i transfer the list of data in the editor like:

8374847.323
8374827.545
8374863.565
8374831.775
8374889.923
8374872.112
...

How do I put it in a array

A= [value1 value2 value3 ...valueN]?
 
Physics news on Phys.org
Did you check http://de.mathworks.com/help/matlab/matlab_prog/create-numeric-arrays.html?
 
mfb said:
Did you check http://de.mathworks.com/help/matlab/matlab_prog/create-numeric-arrays.html?

No, niether dos it look very helpful

I tried A=dataset('File','filename') but it didn't work.
 
The example B = [12, 62, 93, -8, 22; 16, 2, 87, 43, 91; -4, 17, -72, 95, 6] should work.
I don't know the source data format. You can also try to directly copy it into an existing array in the array view.
 
If you have an editor that let's you append a space and three dots ' ...' at the end of every line of data, that is how you can separate the data and continue the MATLAB statement to the next line. So you want something like:

A = [ ...
8374847.323 ...
8374827.545 ...
8374863.565 ...
.
.
.
8374872.112 ...
];
 

Similar threads

Replies
2
Views
3K
Replies
12
Views
3K
Replies
2
Views
2K
Replies
5
Views
3K
Replies
12
Views
4K
Replies
5
Views
3K
Replies
3
Views
3K
Back
Top