KroneckerDelta in matlab

前端 未结 4 1894
心在旅途
心在旅途 2021-01-21 02:01

This link shows that there is a kronecker delta function in matlab. However:

>> help kroneckerDelta

    kroneckerDelta not found

I am u

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-21 02:25

    I don't see it in my R2012b so perhaps not. Unless you need the symbolic math, you could always write your own. Something as simple as

    function d = kronDel(j,k)
    
    if j == k
        d = 1;
    else
        d = 0;
    end
    

提交回复
热议问题