Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to Integral Signal

Status
Not open for further replies.

sadsorry

Newbie level 6
Joined
Feb 20, 2013
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,347
Hi guys!
I have a signal and I want to integral it. But problem is warnning "First input argument must be a function handle" of matlab. Because this signal is received from the channel (so its function is not defined).
Any advise? Thanks
 

I think you have a series of values sampled every ΔT seconds. This means the sequence:

v(0) sampled at time 0
v(1) sampled at time ΔT
v(2) sampled at time 2•ΔT
:
:
v(n) sampled at time n•ΔT

To calculate the integral means to measure the area under the curve. You can see your signal as formed by many rectangles of base ΔT and amplitude equal to that of the sample. Usually the value of the sample could be the initial one that is:

v(0) from 0 to ΔT
V(1) from ΔT to 2•ΔT
ans so on

or the average, that is:

[v(0)+v(1)]/2 from 0 to ΔT
[v(1)+v(2)]/2 from ΔT to 2•ΔT
ans so on

however simply calculate the sum of the areas of all the rectangles (the base is always ΔT):

ΔT•Σ([v(0)+v(1)+v(2)....v(n)]) initial value
ΔT/2•Σ([v(0)+2•v(1)+2•v(2)....v(n)]) average value

In case ΔT varies then you have to calculate separately each area, that is: Σ([v(0)•ΔT(0)+v(1)•ΔT(1)+v(2)•ΔT(1)....v(n)•ΔT(n)])
 
Thanks guys! I have done my job. I used trapz but it's not my purpose. I have same idea with albbg . I used intdump (integralanddump) in Communication Tool Box. It will perform integration with period reset and I get expected values. Thanks for support
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top