📄 extract.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 + -