Plc Programming Create Function In Matlab