How to wrote theta as a matlab code
70 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Azriel Faiz Abu Fadzil
el 19 de Oct. de 2017
Respondida: RAVI Kumar
el 26 de En. de 2021
How to wrote theta as matlab code
for example 2sintheta
0 comentarios
Respuesta aceptada
Birdman
el 19 de Oct. de 2017
syms theta
2*sin(theta)
Then by substituting theta with any numeric variable, you can calculate 2*sin(theta)
3 comentarios
Jan
el 20 de Feb. de 2018
@Courtney: "It does not run" does not allow to help you. Please post, what happens instead - perhaps an error message because you do not have the Symbolic Toolbox?
Más respuestas (2)
James Tursa
el 19 de Oct. de 2017
Editada: James Tursa
el 19 de Oct. de 2017
E.g.,
theta = pi/4;
result = 2*sin(theta); % <-- if theta is in radians
theta = 45;
result = 2*sind(theta); % <-- if theta is in degrees
0 comentarios
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!