필터 지우기
필터 지우기

How to wrote theta as a matlab code

조회 수: 22 (최근 30일)
Azriel Faiz Abu Fadzil
Azriel Faiz Abu Fadzil 2017년 10월 19일
답변: RAVI Kumar 2021년 1월 26일
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