Why Does int() of rectangularPulse Return NaN?
1 回表示 (過去 30 日間)
古いコメントを表示
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?
採用された回答
Walter Roberson
2021 年 7 月 9 日
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 件のコメント
Walter Roberson
2021 年 7 月 10 日
I have a suspicion that somewhere along the way, a dirac(0) is getting invoked.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Assumptions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!