Vibration analysis/ vector sum/ phase

1 回表示 (過去 30 日間)
Gabriel Klein Lunkes
Gabriel Klein Lunkes 2016 年 12 月 3 日
回答済み: bio lim 2016 年 12 月 3 日
Given two matrix with a signal measured from an accelerometer (time, accel_x, accel_Y, accel_z), how can I verify in witch direction the vector sum is pointed at?
Thanks!

回答 (1 件)

bio lim
bio lim 2016 年 12 月 3 日

Let's say this is your data.

A = [1 1 2 3;
     2 2 4 -1;
     3 0 1 5];

where the first column is the time, and the rest are the accelerations measured in X,Y, and Z. Then, using quiver3

start = zeros(3,3);
end = [A(:,2) A(:,3) A(:,4)];
quiver3(start(:,1), start(:,2), start(:,3), end(:,1), end(:,2), end(:,3))

Gives you:

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by