TP-probleme-inverse-3D/TP5/conversion.m
2023-06-25 16:38:01 +02:00

6 lines
102 B
Matlab

function [theta, phi] = conversion(s)
phi = atan2(s(1,:), s(2,:));
theta = acos(s(3,:));
end