Read c3d-files into Matlab

54 ビュー (過去 30 日間)
Sam
Sam 2014 年 12 月 24 日
回答済み: Walter Roberson 2023 年 5 月 24 日
I have two directories of data: 'data_stair_rise' and 'data_sts'. Each directory contains 5 subfolders: 'pp1', 'pp2', 'pp3', 'pp4' en 'pp5'. Each subfolder contains some '.c3d-files'. (see attachment).
We need to read these files into Matlab. The teacher gave us a function who can read these c3d-files, but we need to create 5x5 struct (5 subjects x 5 measurements). (see attachment).
I don't have ANY idea how to start... Please help.
  2 件のコメント
Suad Abu Shaar
Suad Abu Shaar 2023 年 5 月 24 日
Can you share the command used to read the c3d file please
Image Analyst
Image Analyst 2023 年 5 月 24 日
@Suad Abu Shaar, @Sam had a function he called "read_c3d_file" but he never attached it. And since it's 9 years later, I doubt he ever will.

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

回答 (2 件)

Image Analyst
Image Analyst 2014 年 12 月 24 日
I don't know what's in the file. In a single .c3d file, how many subjects, and how many measurements are in it?
When you use your teacher's function, what kind of variable does the file get read in to? A single structure? An array of structures? We have no idea, but you should since you and your teacher have the code.
  8 件のコメント
Sam
Sam 2014 年 12 月 25 日
編集済み: Sam 2014 年 12 月 25 日
Thanks, I understand that. But where exactly should I place 'reac_c3d_file()' to solve the problem? I tried different things, I replaced 'read_c3d_file()' but I still don't get the result I want...
Sam
Sam 2014 年 12 月 26 日
編集済み: Sam 2014 年 12 月 26 日
How can I jump back to the first for-loop?

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


Walter Roberson
Walter Roberson 2023 年 5 月 24 日
see https://www.mathworks.com/matlabcentral/fileexchange/69372-ezc3d
and tools listed at https://www.c3d.org/c3dapps.html

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by