NNC codes on Matlab