MATLAB: Handle Large GPS Data Sets Easily

  • Context: MATLAB 
  • Thread starter Thread starter beyondlight
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary

Discussion Overview

The discussion focuses on methods for handling large GPS measurement data sets in MATLAB, specifically how to format and input the data into an array. The scope includes practical application and technical explanation related to MATLAB programming.

Discussion Character

  • Technical explanation, Practical application

Main Points Raised

  • One participant asks how to input a list of GPS data into an array in MATLAB.
  • Another participant suggests checking MATLAB's documentation on creating numeric arrays, but this is met with skepticism regarding its helpfulness.
  • A participant mentions trying to use the 'dataset' function but reports it did not work.
  • One suggestion includes using a specific example of array formatting, though the source data format is unclear.
  • A participant proposes using the MATLAB editor to append ' ...' at the end of each line to continue the statement across multiple lines.
  • Another participant recommends using the 'dlmread' function to read data from a file.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method to input the data, with multiple approaches suggested and some skepticism about the usefulness of certain resources.

Contextual Notes

There is uncertainty regarding the source data format and the effectiveness of the proposed methods, as well as missing assumptions about the data structure.

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 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
8K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K