Kronecker Delta
Version 1.0.0.0 (1.24 KB) by
Richard Rieber
Given 2 subscripts, j & k, KronD will return 1 if j == k and 0 if j != k.
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 (2025). Kronecker Delta (https://www.mathworks.com/matlabcentral/fileexchange/26485-kronecker-delta), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2008a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Characters and Strings in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |