Filter löschen
Filter löschen

Taking integral of a continuous pulse??? f: y=1, 0<x<1

1 Ansicht (letzte 30 Tage)
Serhat
Serhat am 17 Mär. 2013
Hello,
I am generating a continuous pulse which is equal to 1 (y=1) while 0<x<1 such that:
t=0:0.001:1;
p1=ones(1,numel(t));
Now, I want to take its square integral (integral(f^2)). How can I do that?

Antworten (1)

Walter Roberson
Walter Roberson am 17 Mär. 2013
The square of 1 is 1, the square of 0 is 0, so f^2 is the same as f.
The value of the integral is going to depend on the bounds of integration. Over A to B, A <= B, I figure it is
min(B,1) - min(max(A,0),1)

Kategorien

Mehr zu Electrical Block Libraries 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