How to wrote theta as a matlab code
66 ビュー (過去 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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!