I have a mxnx3 dimensional matrix (for example, 1000X2000 points represented by their x,y,z coordinates). I want to convert the last 3 dimensional vector into a skew symmetric matrix. I know that I can convert a single vector of size 3 in a skew symmetric matrix of size 3×3 as follows:
X = [ 0 -x(3) x(2) ; x(3) 0 -x(1) ; -x(2) x(1) 0 ];
Now, I can go write a for loop and go through each of mxn elements and convert them by the aforementioned method into a skey symmetric matrix. I was wondering, how to write this code in vectorised manner, so that I can run this quickly.
Best Answer