How to wrote theta as a matlab code
조회 수: 22 (최근 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에서 Number Theory에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!