How to Specify Symbolic Variable Using Symbolic Toolbox

2 ビュー (過去 30 日間)
Jay
Jay 2016 年 10 月 16 日
コメント済み: Jay 2016 年 10 月 16 日
I have just downloaded the Symbolic Toolbox.
I am trying to specify the variable
theta_1
as a symbolic variable.
Omega(3,3) = (zeros) % Initialization
sym(theta_1) % Symbology Variable
% Omega Population
Omega(1,1) = 1
Omega(2,2) = cos(theta_1)
Omega(2,3) = sin(theta_1)
Omega(3,2) = -sin(theta_1)
Omega(3,3) = cos(theta_1)
In the command window I get a return that
"Undefined function or variable 'theta_1'.
How do I define theta_1 as a symbolical variable.

採用された回答

Andriy Kavetsky
Andriy Kavetsky 2016 年 10 月 16 日
You should specify the variable theta_1 using next command
>> syms theta_1

その他の回答 (1 件)

Jay
Jay 2016 年 10 月 16 日
I found one issue so far. I have downloaded the trial version and installed it but don't know how to activate it.
  2 件のコメント
Andriy Kavetsky
Andriy Kavetsky 2016 年 10 月 16 日
So you have another problem.
Jay
Jay 2016 年 10 月 16 日
It would seem so, I will write another question and return back to this if I still I have an issue.
If not I will flag as solved.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by