Revert "Matlab scripts for testing tcp and udp"

This reverts commit 38df187f5458c6e700e562d047b6c43bebcf3b2c.
Revert "Revert "Matlab scripts for testing tcp and udp""

This reverts commit 6118fd2e7f5c0337c11baec1e1ff0cc421aa3aab.
Changes to set socket receive timeout function