Getting Error: Unexpected MATLAB expression.

2 ビュー (過去 30 日間)
Rodrigo Acuña
Rodrigo Acuña 2015 年 6 月 27 日
回答済み: Azzi Abdelmalek 2015 年 6 月 27 日
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

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 6 月 27 日
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)]

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by