Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Jesse Heckman
pbtoolbox
Commits
a3ce0388
Commit
a3ce0388
authored
Jun 12, 2019
by
Jesse Heckman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes
parent
bd903b54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
utilities/housekeeping/pb_clean.m
utilities/housekeeping/pb_clean.m
+0
-4
utilities/math/pb_rot2azel.m
utilities/math/pb_rot2azel.m
+28
-0
No files found.
utilities/housekeeping/pb_clean.m
View file @
a3ce0388
...
...
@@ -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
)
...
...
utilities/math/pb_rot2azel.m
0 → 100644
View file @
a3ce0388
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) %
% %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment