作者howshue (阿斯斯)
看板MATLAB
标题[讨论] 关掉client端连线的方法
时间Mon Feb 6 16:04:05 2017
我的程式大概如下
t = tcpip(………,'client');
fopen(t);
这样即可进行连线
而关掉
很简单的只要
fclose(t);
即可完成
但是问题是
要是我遗失或是覆盖掉了" t "
我就找不到可以取消连线的方法
除了关掉matlab以外
还有其他方法可以取消client的连线吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 42.72.228.130
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/MATLAB/M.1486368247.A.BDD.html
1F:推 u284976: 不能多宣告一个变数吗?像是closet=t;要关档的时候在t=c 02/07 16:46
2F:→ u284976: loset;fclose(t)(我是菜鸟 好奇求解 02/07 16:46
3F:推 sunev: fIDs = fopen('all') returns a row vector containing the 02/08 00:38
4F:→ sunev: file identifiers of all open files. 02/08 00:38
5F:推 clang: fclose all; 02/09 23:46