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

📄 parse.sci

📁 基于SCILAB的The Genetic Algorithm Toolbox for SCILAB (GATS)工具箱
💻 SCI
字号:
function [x] = parse(inStr)

strLen=length(inStr);
x='';
if strLen == 0, return,end;
if inStr(1) == ' '
    wordCount=0;
else
    wordCount=1;
end
last=0;
for i=1:strLen,
  if part(inStr,i) == ' '
    if ((i==strLen)|(part(inStr,i+1) ~= ' '))
       wordCount = wordCount + 1;
       x(wordCount)=emptystr();
       last=i;
    end
  else
    x(wordCount)=x(wordCount)+part(inStr,i);
  end
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -