Getting Error: Unexpected MATLAB expression.

2 visualizzazioni (ultimi 30 giorni)
Rodrigo Acuña
Rodrigo Acuña il 27 Giu 2015
Risposto: Azzi Abdelmalek il 27 Giu 2015
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

Risposte (1)

Azzi Abdelmalek
Azzi Abdelmalek il 27 Giu 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)]

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by