Why Does int() of rectangularPulse Return NaN?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Paul
am 9 Jul. 2021
Kommentiert: Paul
am 25 Mai 2022
syms t real
x(t) = rectangularPulse(0,1,t);
int(x(t),t,0,5)
int(x(t),t,0,inf)
int(x(t),t,-10,10)
int(x(t),t,-inf,inf)
Any ideas why those two cases return NaN?
Akzeptierte Antwort
Walter Roberson
am 9 Jul. 2021
Work-around:
syms b x t real
assume(b>=0)
y(t) = rectangularPulse(x,1,t)
z = int(y,t,0,b)
limit(z, b, inf)
4 Kommentare
Walter Roberson
am 10 Jul. 2021
I have a suspicion that somewhere along the way, a dirac(0) is getting invoked.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Assumptions 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!