extract.m
来自「802.11仿真源码 对分析RSSI很有用的」· M 代码 · 共 18 行
M
18 行
function value = Extract(line, commalimit)
% This function ->
% Extract: Given a line and a integer limit, this program will
% extract the number after the amount of commas prescribed
% in the limit.
i = 1;
commas = 0;
while (commas < commalimit)
if (line(1) == ',')
commas = commas + 1;
end
line = line(2:length(line));
i = i + 1;
end
value = sscanf(line,'%f');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?