Home > Back-end >  The specific data to the documents to for subsequent use in the array
The specific data to the documents to for subsequent use in the array

Time:02-21

I now have a TXT documents, this is just a file, I capture a fraction of the original data file, and then I need to be extracted to ACCE, GYRO, MAGN and GNSS beginning at the back of the data, and then into the array, the subsequent also need to use these data, the original is read directly in matlab is very simple, but now want to switch to an embedded C, a little don't know what to do, I hope you give me some advice code

CodePudding user response:

Remember you asked the question, it seems that you are still not to ask questions,
You can't go to see the doctor said just uncomfortable,
You have to to fully tell your conditions and requirements, including but not limited to:
Your data file is expected to have how many lines/rows unknown?
Is there a free line/why?
Why didn't some line looks the branch points? Actual file will be like this?
What is expected reasonable line format?
The reasonable line should have several fields?
Fields are separated by semicolons?
After you expected read into the array? Type? The dimensions? The size?

CodePudding user response:

The original file is on the phone sensor data, and then, due to the time of each measure, line number is unknown, no empty lines, but each row has not completely filled with expectations is to put the raw data file ACCE, Gyro, Magn and GNSS at the beginning of the subsequent some data read into the corresponding array respectively, among them ACCE, Gyro, Magn were n line (because the samples were unknown) six columns of the array; GNSS is an array of the row 10 n, in order to follow-up use to be obtained,
  • Related