Do I need to close a tcpip socket in Matlab? -


i'm new matlab, , i'm trying build super simple server/client system test stuff out, following example found.

t = tcpip('0.0.0.0', 30000, 'networkrole', 'server'); fopen(t); data = fread(t, 10); plot(data);

my question is, need close socket @ end? assuming part of larger program of course. how do that?

you use:

fclose(t);  

when done connection. answer question?

http://www.mathworks.com/help/instrument/tcpip.html


Comments