Align Z axis so it is always perpendicular
3 ビュー (過去 30 日間)
古いコメントを表示
This may well be a very simple (and simple) question. So I'll apologise in advance. The question in relating to a discussion I had with someone.
Consider the fact that we have 3D orthogonal vector, consider that it may be a time series.
f1 = = [ -0.1408 -0.3257 2.1674]
How would you go about aligning the vector so that it is always perpendicular to Z axis.
Thanks
0 件のコメント
採用された回答
Roger Stafford
2014 年 9 月 6 日
Set its third component to zero:
f1(3) = 0;
Of course that shortens the vector. If you want to preserve its vector length,
n = norm(f1);
f1(3) = 0;
f1 = f1*(n/norm(f1));
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Precision についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!