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

📄 ft_find_text_in_active_block.m

📁 用matlab做的Frequency domain INterferomEter Simulation SoftwarE,在国外网站下的,还在研究中,不会用,有会用的回复我
💻 M
字号:
%---------------------------------------------------------------------  % function [line_numbers] = FT_find_text_in_active_block(block,searchtext)% % Finds a search string in a block and returns the line numbers% where it was found. This function differs from FT_find_text_in_block% in that it excludes all comment lines in the search%% block: block structure% searchtext: string, text to search for% line_numbers, vector of integers, giving the lines in which %               searchtext was found%% Part of the SimTools package% Andreas Freise 22.05.08 afreise@googlemail.com%---------------------------------------------------------------------  function [line_numbers] = FT_find_text_in_active_block(block,searchtext)  baseid='FT_find_text_in_block';      if (~isstruct(block))    msgid=[baseid,':checkinarg'];    result='first input argument must be a block structure';    error(msgid,result);  end    if (~isstr(searchtext))    msgid=[baseid,':checkinarg'];    result='second input argument must be a string';    error(msgid,result);  end    line_numbers=[];  for i=1:block.n_lines    line_text=FT_remove_comment_line(block.txt_lines(i));    found=strfind(line_text,searchtext);    if (found)      line_numbers = [line_numbers, i];    end  end        

⌨️ 快捷键说明

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