Reading a txt file and arranging a table

2 ビュー (過去 30 日間)
andrea vironda
andrea vironda 2020 年 7 月 27 日
コメント済み: andrea vironda 2020 年 7 月 27 日
Hi!
I have a txt file in which there are X,Y,Z positions of a tracking.
The file doesn't go to cape, so it's all in a single line:
I tried to use this code
filename=('G-B.txt');
T = readtable(filename,'Delimiter','"');
But i obtain only a long string of "VariableNames":
How can i het the value in the correct way?
I would need a nx3 matrix, with each line fullfilled with 3 values (lat,long,ele)
  6 件のコメント
Image Analyst
Image Analyst 2020 年 7 月 27 日
You forgot to attach your file. Please attach your XML text file. Zip it up if you have to. Then use the paper clip icon.
andrea vironda
andrea vironda 2020 年 7 月 27 日
Here's the code and the starting .xml
clc; clear all; close all
filename=('camping-du-domaine-de-griggione-bastia.xml');
mlStruct = parseXML(filename)

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by