how do you use sin in matlab?
33 次查看(过去 30 天)
显示 更早的评论
like for example I will input sin 30
when I do this I get an error: ??? Undefined function or variable 'sin30'.
sin is a function right? I do not need to put a value for it but why do I still get this error.? help me guys please...
0 个评论
采纳的回答
更多回答(1 个)
Daniel Shub
2011-8-14
You need parentheses. For example:
sin(30)
Although you probably want
sin(30*pi/180)
since sin expects its argument to be in radians.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!