How to Specify Symbolic Variable Using Symbolic Toolbox
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Jay
el 16 de Oct. de 2016
Comentada: Jay
el 16 de Oct. de 2016
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.
0 comentarios
Respuesta aceptada
Andriy Kavetsky
el 16 de Oct. de 2016
You should specify the variable theta_1 using next command
>> syms theta_1
0 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!