⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 extract.m

📁 802.11仿真源码 对分析RSSI很有用的
💻 M
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -