TRANSLATION OF COORDINATE AXES
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposta accettata
Image Analyst
il 19 Dic 2011
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);
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Graphics Object Programming in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!