Hi every one, when i run this code,i got error as below,please guide me,

Hi every one,
when i run this code
import ETS2.*
syms a1 a2 x y real
q1 = 30; q2 = 40;
E = Rz('q1')*Tx(a1)*Rz('q2')*Tx(a2);
TE = E.fkine( [q1,q2] );
simplify(TE)
it give error like this
''Undefined function or method 'Rz' for input arguments of type 'char'.
Error in ==> Untitled at 4
E = Rz('q1')*Tx(a1)*Rz('q2')*Tx(a2);''
please guide me.
thanks in advance

Answers (1)

Because you didn‘t define the variable Rz thats what is causing the error , you need to define it first. Also see the another possibility of your problem

Categories

Asked:

on 14 Nov 2018

Edited:

on 14 Nov 2018

Community Treasure Hunt

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

Start Hunting!