0

I get an error when running the following command in MATLAB R2019a

clc
clear
rotm = [1 0 0 ; 0 -1 0; 0 0 -1];
tform = rotm2tform(rotm)

Command Window:

Undefined function 'rotm2tform' for input arguments of type 'double'.

Error in ex2_1 (line 4)
tform = rotm2tform(rotm)

The example is taken from https://se.mathworks.com/help/robotics/ref/rotm2tform.html

What could be the problem?

2
  • 1
    Do you have the Robotics System Toolbox installed? Typing ver at the command prompt will show you which toolboxes are installed. Commented Sep 7, 2021 at 17:22
  • 1
    I did not. I have it now and it works! Thanks! Commented Sep 7, 2021 at 17:30

1 Answer 1

0

As beaker pointed out, Robotics System Toolbox needs to be installed. This was the problem in my case. Now the example works fine.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.