How can I use the function 'trvec' to extract the translation vector from an SE3 object

I have my SE3 object representing a 4x4 matrix. I need to extract the translation vector to get the [X Y Z] coordinates i.e. the values that are present at position (1,4) (2,4) (3,4) of the matrix represented by the object.
On the matlab documentation there are the various functions that the object can use. I followed the syntax but it doesn't recognize those functions either. Especially the function 'trvec' should solve my problem, but it doesn't work.

3 Comments

Do you have Navigation Toolbox installed?
Were it not for, MATLAB would not recognize any functions provided by the Navigation Toolbox.
no okay i solved it. i had to write " .t " next to my SE3 object to extract the vector t, i didn't use any function.
thanks anyway for helping me
Hey, Do you know of any method to only extract the x coordinate.

Sign in to comment.

Answers (0)

Products

Release

R2022a

Asked:

on 24 Sep 2022

Commented:

on 14 Mar 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!