Get cosine real values

조회 수: 8 (최근 30일)
Robert
Robert 2021년 3월 10일
답변: Walter Roberson 2021년 3월 10일
I want to get the real values of cosine here in this code-
syms q
T = cosd(q);
T04 = subs(T,{q},{10})
Output:
T04 =
cos(pi/18)
How can I get real value which is 0.9848 with this script and with the same code pattern?

채택된 답변

Walter Roberson
Walter Roberson 2021년 3월 10일
vpa(T04) or double(T04)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by