1function vec = tform2trvec( T ) 2%TFORM2TRVEC Extract translation vector from homogeneous transformation 3 4%#codegen 5 6vec = T(1:3,4); 7 8end 9