You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
279 B
Matlab

function y=vec2mat(x)
%------Tranlate vector to matrix to product with matrix------%
%---------------------Edited by Xiaoguo----------------------%
%-----------------------20080427-----------------------------%
y=[ 0, -x(3), x(2);
x(3), 0, -x(1);
-x(2), x(1), 0];