How to count steps represented by the acceleration data given in text file?

3 ビュー (過去 30 日間)
Hakan
Hakan 2023 年 1 月 4 日
コメント済み: Hakan 2023 年 1 月 4 日
i have a acceleration data in text file. im tryin to read this text file and make a count steps plot, but i couldn't. and the output should look like this:

採用された回答

Alan Stevens
Alan Stevens 2023 年 1 月 4 日
編集済み: Alan Stevens 2023 年 1 月 4 日
Like this (you can plot the other two - look up help on subplot):
M = csvread('walking.txt');
x = M(:,1); y = M(:,2); z = M(:,3);
t = 1:numel(x);
plot(t,x,t,y,t,z)
xlabel('time'), ylabel('acceleration')
legend('x','y','z')

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by