I'm looking for some help in reading a TCX file so that I can null increasing elevation data.

6 ビュー (過去 30 日間)
I'm trying to import/read a TCX file (a Garmin xml file) so that I can do a math operation on height data. Basically I want to edit the file. Long ago I wrote such an m-file that would me to do as much, but that was two hard drive crashes ago, and answers are on a hard drive that won't reveal its contents.
I've tried renaming the file as an xml file and then using xmlread to try and read it, but all I get back is "null file".
Is there a way to just read any file? I know the number of columns and the data in those columns.
Any help would be greatly appreciated
  1 件のコメント
joshua haselgrove
joshua haselgrove 2022 年 4 月 13 日
If you use the following line of code and input your file name as FullFileName it should work
FileStruct = readstruct(FullFileName,'FileType','xml');

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

回答 (1 件)

Prashant Arora
Prashant Arora 2017 年 7 月 18 日
Hi Robin,
You can try and use the MATLAB import tool using the "Import Data" button in the Home tab. You can customize the import of the .tcx file and generate a script for all the customization using "Generate Script" or "Generate Function" option.

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by