필터 지우기
필터 지우기

Question about ilaplace()

조회 수: 2 (최근 30일)
Fausto Arinos Barbuto
Fausto Arinos Barbuto 2016년 4월 19일
댓글: Walter Roberson 2016년 4월 20일
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
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
Fausto Arinos Barbuto 2016년 4월 19일
Walter,
What you suggested did not work:
>> dirac(2, sym('1'))
Error using sym/dirac
Too many input arguments.
I must be missing something.
Walter Roberson
Walter Roberson 2016년 4월 20일
Hmmm, try
dirac(sym('2'), sym('1'))
if that does not work then try
evalin(symengine, 'dirac', 2, 1)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by