Returns the area below the curve of the signal S between xstart and xend (calculated with Trapezoidal method). The parameter xstart and xend are optional. The function area(S) returns the area below the curve of the whole signal S. If S is complex the result is complex with the result of the area function of the real part of S in the real component and the result of the area function of the imaginary part of S in the imaginary component. The return value is scalar if the first argument is xy-data, otherwise the function returns a vector.
If S is a signal with the abscissa x and channel y with n values, then the result is defined by
                        
                    
Syntax
area(S [,xstart,xend])
Types
| Variable Name | Value Type | Variable Type | ||
|---|---|---|---|---|
| Arguments: | S | real, complex | signal, xy-data | |
| Optional: | xstart | real | scalar | |
| xend | real | scalar | ||
| Result: | real, complex | scalar, vector | ||
Calculator Input
Use the button to complete the operation.
Examples
| ID | Description | Type | Value | Expression | |
|---|---|---|---|---|---|
| S | REAL SIGNAL | 
                                          
                                     | signal([1,2,4,5,6],[1,2,5,6,7]) | ||
| aS | Result | REAL VECTOR | (20.5) | area(S) | |
| aS2 | Result | REAL VECTOR | (12.5) | area(S,1.5,5) | |
