Wrong answer for sine function
이전 댓글 표시
I am trying to create a function to evaluate sine at different values of t
function F = rforce(t)
F = 0.3 + 0.2.*sin(2.*pi.*t/365 - pi/2);
end
but this gives the incorrect answer when ran in matlab
댓글 수: 2
Star Strider
2019년 11월 17일
It would appear that the units of ‘t’ are days, so ‘F’ would be with respect to years (or fractions of years).
What result do you want?
Ellen Brown
2019년 11월 17일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Instrument Control Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!