mat= vec2mat(vec,matcol)converts vectorvecto matrixmatwithmatcolcolumns. The function creates the matrix one row at a time, filling the rows with elements fromvecin order. If the length ofvecis not a multiple ofmatcol, then the function pads the last row ofmatwith zeros until the row co...
rotationMatrix= rotvec2mat3d(rotationVector)returns a 3-D rotation matrix that corresponds to the input axis-angle rotation vector. The function uses the Rodrigues formula for the computation. example Examples collapse all Convert Rotation Vector to Rotation Matrix ...