update NDS
code update

add the code for the system in Matlab