matlab里面sin函数是角度,matlab中的sin(函数)



笔记:matlab中的sin(函数)

sin

Sine of an argument in radians

Syntax

Y = sin(X)

Description

The sin function operates element-wise on arrays. The function's domains and ranges include complex values. All angles are in radians.

Y = sin(X) returns the circular sine of the elements of X.

Examples

Graph the sine function over the domain

0818b9ca8b590ca3270a3433284dd417.png .

x = -pi:0.01:pi;

plot(x,sin(x)), grid on

0818b9ca8b590ca3270a3433284dd417.png

The expression sin(pi) is not exactly zero, but rather a value the size of the floating-point accuracy eps, because pi is only a floating-point approximation to the exact value of

0818b9ca8b590ca3270a3433284dd417.png

话说,这里的sin( -pi:0.01:pi)中的0.01是取样频率,-pi,pi是范围

也就是得到样本:{-pi+0.01,-pi+0.02,-pi+0.03,......pi-0.01,pi}

当然,这里的pi是近似值


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部