フィルターのクリア

Matrix Operations and Finding Joint Angles

1 回表示 (過去 30 日間)
Eric
Eric 2011 年 4 月 24 日
I am trying to find the angle between a segment and global y-axis.
HAT = icrest-hip;
UnitY = [0 1 0]
for i = 1:size(position,1)
normHAT(i,:) = HAT(i,:)/norm(HAT(i,:));
end
I created Y = zeros(171,3) which is the size of normHAT I want to put UnitY into each frame, i.e. 171 total.
Then I want to write a loop to find the angle at each frame
for i = 1:size(postion)
HATthetaY = acos(dot(Y(i,:),HAT))/(dot(Y(i,:),normHAT));
end
  2 件のコメント
bym
bym 2011 年 4 月 24 日
perhaps some sample data for HAT would help
Jan
Jan 2011 年 4 月 26 日
Do you have a question?

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

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by