Getting Error: Unexpected MATLAB expression.

1 view (last 30 days)
Help Please
*My Matlab Code:
syms alpha beta gamma real
% write down the rotation matrices using the symbolic parameters alpha, beta, gamma
R_B1 = [1,0,0;0,cos(alpha),-sin(alpha);0,sin(alpha),cos(alpha)]...;
R_12 = [cos(beta),0,sin(beta);0,1,0;-sin(beta),0,cos(beta)]...;
R_23 = [cos(gamma),0,sin(gamma);0,1,0;-sin(gamma),0,cos(gamma)]...;
MATLAB Version: MATLAB R2013a

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 27 Jun 2015
syms alpha beta gamma real
% write down the rotation matrices using the symbolic parameters alpha, beta, gamma
R_B1 = [1,0,0;0,cos(alpha),-sin(alpha);0,sin(alpha),cos(alpha)]
R_12 = [cos(beta),0,sin(beta);0,1,0;-sin(beta),0,cos(beta)]
R_23 = [cos(gamma),0,sin(gamma);0,1,0;-sin(gamma),0,cos(gamma)]

Tags

Community Treasure Hunt

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

Start Hunting!