TRANSLATION OF COORDINATE AXES

2 次查看(过去 30 天)
Antenna_X_Pos=[-0.0025; 0.1406; -0.0685;-0.1134;0.1160;0.0640;-0.1471;-0.0013];
Antenna_Y_Pos=[0.0546;-0.1323;-0.2277;-0.0053;-0.0069;-0.2296;-0.1289;-0.0949];
Antenna_Z_Pos=[0.3446;0.2975;0.2605;0.2179;0.1770;0.1361; 0.0928 ; 0.2177];
how can I shift a set of coordinates in the above microphones(x,y,z) to origin(0,0,0)? Its basically translation of axes to origin (for better reference).
please help

采纳的回答

Image Analyst
Image Analyst 2011-12-19
Why do you say it's not? Which one of those elements do you want to define as being at zero? Which ever one it is, just subtract it from all the other elements. For example, you want Antenna_Z_Pos(3) to be defined as z=0. So just do
Antenna_Z_Pos = Antenna_Z_Pos - Antenna_Z_Pos(3);
Same for the other two arrays, Antenna_X_Pos and Antenna_Y_Pos. You don't need to use the same element number (3 in my example) for each one. For example you can do
Antenna_X_Pos = Antenna_X_Pos - Antenna_X_Pos(1);
Antenna_Y_Pos = Antenna_Y_Pos - Antenna_Y_Pos(3);
Antenna_Z_Pos = Antenna_Z_Pos - Antenna_Z_Pos(5);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by