Kronecker Delta

Given 2 subscripts, j & k, KronD will return 1 if j == k and 0 if j != k.

You are now following this Submission

Given 2 subscripts, j & k, KronD will return 1 if j == k and 0 if j != k.

A very simple function with only a single if-else statement. Saves a bit of typing when the Kronecker Delta is needed.

Cite As

Richard Rieber (2026). Kronecker Delta (https://au.mathworks.com/matlabcentral/fileexchange/26485-kronecker-delta), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0