summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/localization/src/matlab/quatMul.m
diff options
context:
space:
mode:
authorleochanj <jbakita@cs.unc.edu>2020-10-21 01:52:54 -0400
committerleochanj <jbakita@cs.unc.edu>2020-10-21 01:52:54 -0400
commit25d94aa8aabb8ac3e8bbea0bc439ea6148444cc8 (patch)
treeba80e76d25d9ca9486092e2f6b6d76f0e3352bf7 /SD-VBS/benchmarks/localization/src/matlab/quatMul.m
parente2b50015cebdfba68699abd6e8575e38230f5a78 (diff)
debug libextra and remove matlab
Diffstat (limited to 'SD-VBS/benchmarks/localization/src/matlab/quatMul.m')
-rw-r--r--SD-VBS/benchmarks/localization/src/matlab/quatMul.m18
1 files changed, 0 insertions, 18 deletions
diff --git a/SD-VBS/benchmarks/localization/src/matlab/quatMul.m b/SD-VBS/benchmarks/localization/src/matlab/quatMul.m
deleted file mode 100644
index b397554..0000000
--- a/SD-VBS/benchmarks/localization/src/matlab/quatMul.m
+++ /dev/null
@@ -1,18 +0,0 @@
1function retQuat=quatMul(a, b)
2
3rowsa = size(a,1);
4colsa = size(a,2);
5
6rowsb = size(b,1);
7colsb = size(b,2);
8
9retQuat=[a(:,1).*b(:,1) - a(:,2).*b(:,2) - a(:,3).*b(:,3) - a(:,4).*b(:,4) ...
10 a(:,1).*b(:,2) + a(:,2).*b(:,1) + a(:,3).*b(:,4) - a(:,4).*b(:,3) ...
11 a(:,1).*b(:,3) - a(:,2).*b(:,4) + a(:,3).*b(:,1) + a(:,4).*b(:,2) ...
12 a(:,1).*b(:,4) + a(:,2).*b(:,3) - a(:,3).*b(:,2) + a(:,4).*b(:,1)];
13
14% disp('retQuat');
15% disp(retQuat);
16
17
18