How to wrote theta as a matlab code

22 次查看(过去 30 天)
How to wrote theta as matlab code
for example 2sintheta

采纳的回答

Birdman
Birdman 2017-10-19
syms theta
2*sin(theta)
Then by substituting theta with any numeric variable, you can calculate 2*sin(theta)
  3 个评论
Courtney Jacks
Courtney Jacks 2018-2-20
When I input this in matlab it does not run.
Jan
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
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

RAVI Kumar
RAVI Kumar 2021-1-26
Thetha=pi/4

类别

Help CenterFile Exchange 中查找有关 Number Theory 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by