KroneckerDelta in matlab
问题 This link shows that there is a kronecker delta function in matlab. However: >> help kroneckerDelta kroneckerDelta not found I am using R2011b, so maybe this wasn't programmed into the toolkit yet? EDIT:: It works in MuPad, just not in matlab... . 回答1: 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 回答2: The Kronecker delta returns 1 if j==k... So