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!