You can find a MATLAB code to calculate the kernel of a polygon
mainscript_kernel.m: main code with several test cases
funkernel.m : the function that computes the kernel
the other files are auxiliary functions
This material is supplemental to a paper written by A. Mazzia University of Padova, Italy, and submitted for publication