채택된 답변

Birdman
Birdman 2017년 10월 19일

1 개 추천

syms theta
2*sin(theta)
Then by substituting theta with any numeric variable, you can calculate 2*sin(theta)

댓글 수: 3

Azriel Faiz Abu Fadzil
Azriel Faiz Abu Fadzil 2017년 10월 19일
thank you
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일

2 개 추천

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

카테고리

도움말 센터File Exchange에서 Polar Plots에 대해 자세히 알아보기

태그

질문:

2017년 10월 19일

답변:

2021년 1월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by