Import data from txt file
Mostrar comentarios más antiguos
Hi there,
my txt file looks like this: (see attached txt file)
What I try to get is a simple table with lines like this:
frame; timestamp [s]; loc_x; loc_y; loc_z
1007; 52045.728; -135.966; 225.786; -52.285
1008; 52045.745; -135.966; 225.786; -52.285
How can I do this? Thanks
3 comentarios
Adam Danz
el 16 de Jul. de 2019
I see the frame and timestamp components. Where are the xloc yloc etc.?
What are the numbers 1007; 52045.728; -135.966; 225.786; -52.285?
frame 1010 ts 52045.778 nbod 4 nfly 0 nmea 0 nmearef 0 nhand 0 nmar 0 nhuman 0 ninertial 4
bod 0 not tracked
bod 1 not tracked
bod 2 qu 1.000 loc -135.967 225.786 -52.283 rot -0.282 -0.960 0.001 0.960 -0.282 -0.008 0.008 -0.001 1.000
bod 3 not tracked
no human model data
inertial body 0 st 0 error 0.000
inertial body 1 st 0 error 0.000
inertial body 2 st 2 error 0.000
loc -135.967 225.786 -52.283 rot -0.282 -0.960 0.001 0.960 -0.282 -0.008 0.008 -0.001 1.000
inertial body 3 st 0 error 0.000
Rik
el 16 de Jul. de 2019
Do you need code that only works on this file, or should it also handle multiple bodies being tracked?
What have you tried so far on your own?
Ferdinand Grosse-Dunker
el 16 de Jul. de 2019
Respuesta aceptada
Más respuestas (1)
Ferdinand Grosse-Dunker
el 16 de Jul. de 2019
0 votos
1 comentario
Adam Danz
el 16 de Jul. de 2019
Glad I could help!
Categorías
Más información sobre Tables en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!