tcpip_readln.m
来自「A very small 250-line library (written e」· M 代码 · 共 32 行
M
32 行
function str=tcpip_readln(fid,len) % str=tcpip_readln(fid,len)%% fid is file id.% len is maximum length to be read.%% Reads a line of charters terminated by newline character (LF).% If the a full line (until LF) isn available at the% moment a empty string will be returned.% CR and LF characters will not be returned in the string.% str=tcpipmex(4,fid,len); if(length(str)) str=str(find(str~=10 & str~=13)); % Remove all 10 & 13 end return;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?