diff options
author | Leo Chan <leochanj@live.unc.edu> | 2020-10-22 01:53:21 -0400 |
---|---|---|
committer | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-22 01:56:35 -0400 |
commit | d17b33131c14864bd1eae275f49a3f148e21cf29 (patch) | |
tree | 0d8f77922e8d193cb0f6edab83018f057aad64a0 /SD-VBS/common/toolbox/toolbox_basic/TOOLBOX_calib/rotation.m | |
parent | 601ed25a4c5b66cb75315832c15613a727db2c26 (diff) |
Squashed commit of the sb-vbs branch.
Includes the SD-VBS benchmarks modified to:
- Use libextra to loop as realtime jobs
- Preallocate memory before starting their main computation
- Accept input via stdin instead of via argc
Does not include the SD-VBS matlab code.
Fixes libextra execution in LITMUS^RT.
Diffstat (limited to 'SD-VBS/common/toolbox/toolbox_basic/TOOLBOX_calib/rotation.m')
-rwxr-xr-x | SD-VBS/common/toolbox/toolbox_basic/TOOLBOX_calib/rotation.m | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/SD-VBS/common/toolbox/toolbox_basic/TOOLBOX_calib/rotation.m b/SD-VBS/common/toolbox/toolbox_basic/TOOLBOX_calib/rotation.m new file mode 100755 index 0000000..87ee2fe --- /dev/null +++ b/SD-VBS/common/toolbox/toolbox_basic/TOOLBOX_calib/rotation.m | |||
@@ -0,0 +1,23 @@ | |||
1 | function [] = rotation(st); | ||
2 | |||
3 | if nargin < 1, | ||
4 | st= 1; | ||
5 | end; | ||
6 | |||
7 | |||
8 | fig = gcf; | ||
9 | |||
10 | ax = gca; | ||
11 | |||
12 | vv = get(ax,'view'); | ||
13 | |||
14 | az = vv(1); | ||
15 | el = vv(2); | ||
16 | |||
17 | for azi = az:-abs(st):az-360, | ||
18 | |||
19 | set(ax,'view',[azi el]); | ||
20 | figure(fig); | ||
21 | drawnow; | ||
22 | |||
23 | end; | ||