How do i intergrate a signal (sinewave)?

4 次查看(过去 30 天)
Using "INT(sinewave)" gives the error "Undefined function or method 'int' for input arguments of type 'double'" i dont know what this means. How do i intergrate my sinewave. thanks dan.

回答(1 个)

Honglei Chen
Honglei Chen 2012-2-21
int is the symbolic toolbox integration. There are many numerical integration methods in MATLAB, just pick one of them.
doc quad
doc quadl
doc integral
I'll use quad as an example. Let's say I want to integrate a sin function, which has a period of pi,
quad(@sin,0,pi)

类别

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