Commit a3ce0388 authored by Jesse Heckman's avatar Jesse Heckman

minor fixes

parent bd903b54
......@@ -12,10 +12,6 @@ function pb_clean(varargin)
empty = pb_keyval('clc',varargin,true);
clr = pb_keyval('clr',varargin,true);
if ~islogical(clr)
disp('hi')
end
if fig; close all; end
if empty; clc; end
if islogical(clr)
......
function [az,el] = pb_rot2azel(x,y,z)
% PB_ROT2AZEL
%
% PB_ROT2AZEL(x,y,z) returns the azimuth and elevation
%
% See also ...
% PBToolbox (2019): JJH: j.heckman@donders.ru.nl
if (nargin==1 && size(x,2)==3)
y=x(:,2);
z=x(:,3);
x=x(:,1);
end
RTD = 180/pi;
p = sqrt(x .* x + z .* z);
az = RTD * atan2 (x, sqrt (y.^2 + z.^2));
el = RTD * atan2(y,z);
end
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% %
% Part of Programmeer Beer Toolbox (PBToolbox) %
% Written by: Jesse J. Heckman (2019) %
% %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment