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];