Question about ilaplace()
显示 更早的评论
The following lines:
>> syms s;
>> Fs = s^2;
>> ilaplace(Fs)
produce this output:
ans =
dirac(t, 2)
suggesting (to me) that there is a dirac() function that takes two arguments. However, for example,
>> dirac(1,2)
outputs an error ("Too many input arguments."). Can someone give me an explanation to that?
Thanks.
回答(1 个)
Wayne King
2016-4-19
编辑:Wayne King
2016-4-19
I think you mean
dirac(2,t)
and not dirac(t,2)
There is a function in Symbolic Toolbox called dirac() that takes the following syntax
dirac(n,x)
where n is the order of the derivative. Of course derivative is understood here in the sense of distributions.
So dirac(2,t) is the 2nd derivative of the Dirac distribution with respect to the variable t.
See the reference page:
4 个评论
Fausto Arinos Barbuto
2016-4-19
编辑:Fausto Arinos Barbuto
2016-4-19
Walter Roberson
2016-4-19
The symbolic toolbox dirac is invoked if you have symbolic arguments. The numeric dirac is invoked if your arguments are completely numeric. For example
dirac(2, sym('1'))
compared to
dirac(2, 1)
Fausto Arinos Barbuto
2016-4-19
Walter Roberson
2016-4-20
Hmmm, try
dirac(sym('2'), sym('1'))
if that does not work then try
evalin(symengine, 'dirac', 2, 1)
类别
在 帮助中心 和 File Exchange 中查找有关 Descriptive Statistics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!