Is it possible to open .mot file adjust it and export it as .mot file again?
Mostra commenti meno recenti
Hi all,
I would like to adjust the content in my .mot file, since I need to subtract certain values. I am able to open my .mot file in Matlab and I can adjust the content. However, I don't know how to save the file as a .mot file again.
Is there by any chance someone who could help me?
Thank you for any advice.
5 Commenti
Walter Roberson
il 24 Lug 2020
Are those motion files as described at https://simtk-confluence.stanford.edu:8443/display/OpenSim/Motion+%28.mot%29+Files ?
Maud Hendriksen
il 24 Lug 2020
Walter Roberson
il 24 Lug 2020
It looks like pure text, so you can fopen() with 'w' and fprintf() to the file and fclose()
Maud Hendriksen
il 24 Lug 2020
Walter Roberson
il 24 Lug 2020
When you use fprintf with the first parameter being a file identifier then the second parameter must be a format. Parameters after that are data to be processed by the format.
fprintf is not equivalent to disp() of each parameter but sent to the file.
You will probably need one fprintf for the textdata and another for the numeric values.
Also if the numeric data is a 2d array you will probably need to transpose it. MATLAB goes down columns.
Risposte (0)
Categorie
Scopri di più su Data Import and Analysis in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!