pos3D
%% Determines the coordinates p = [px py pz] in 3D space given the
% initial position p0 and the projected final position p1 of a particle
% that has travelled D distance along that path... by Roche C. de Guzman (Dec. 16, 2017)
% Examples
% Inputs:
% p0 = [8 7 3]; % initial position
% p1 = [5 11 15]; % projected final position
% D = 13/2; % distance currently travelled
% Outputs:
% p = [6.5 9 9]; % current position
% D01 = 13; % distance between p0 and p1
% the01 = 67.3801; % angle formed from the xy-plane to p1
% psi01 = -36.8699; % angle formed from the y-axis of p0 to the xy-plane position of p1
Zitieren als
Roche de Guzman (2024). pos3D (https://www.mathworks.com/matlabcentral/fileexchange/65429-pos3d), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.1.0.0 | Updated p1 octant position. |
||
1.0.0.0 |