Filter löschen
Filter löschen

How do i intergrate a signal (sinewave)?

4 Ansichten (letzte 30 Tage)
ken thompson
ken thompson am 21 Feb. 2012
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.

Antworten (1)

Honglei Chen
Honglei Chen am 21 Feb. 2012
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)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by