How to wrote theta as a matlab code
70 次查看(过去 30 天)
显示 更早的评论
How to wrote theta as matlab code
for example 2sintheta
0 个评论
采纳的回答
Birdman
2017-10-19
syms theta
2*sin(theta)
Then by substituting theta with any numeric variable, you can calculate 2*sin(theta)
3 个评论
Jan
2018-2-20
@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?
更多回答(2 个)
James Tursa
2017-10-19
编辑:James Tursa
2017-10-19
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!