How to use kroneckerdelta in programming
27 次查看(过去 30 天)
显示 更早的评论
I want to use the Kroneckerdelta function in my programming.I also check the syntax for it. It is given as kroneckerDelta(m,n).But when i used this syntax in my programming it is showing error Undefined function 'DiracDelta' for input arguments of type 'double'.What does it mean?
2 个评论
KSSV
2016-12-16
What version of MATLAB you are using? Does help Kroneckerdelta gives details about the function?
回答(2 个)
John D'Errico
2016-12-16
You are doing this:
kroneckerDelta(2,3)
Undefined function 'kroneckerDelta' for input arguments of type 'double'.
As you see, MATLAB fails to work, even though I have the symbolic TB, in the current release. Why does it fail? Because I called it with double precision arguments. That function is part of the symbolic TB. In order for it to work, the arguments (at least one of them) must be symbolic.
kroneckerDelta(sym(2),3)
ans =
0
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mathematical Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!