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

📄 ft_remove_lines_from_block.m

📁 用matlab做的Frequency domain INterferomEter Simulation SoftwarE,在国外网站下的,还在研究中,不会用,有会用的回复我
💻 M
字号:
%---------------------------------------------------------------------  % function [block] = FT_remove_lines_from_block(block,line_numbers)% % Removes text lines given by their line numbers from a block%% block: block structure% line_numbers: vector of integers, specifying lines to be removed%% Part of the SimTools package% Andreas Freise 22.05.08 afreise@googlemail.com%---------------------------------------------------------------------  function [block] = FT_remove_lines_from_block(block,line_numbers)  baseid='FT_remove_lines_from_block';      if (~isstruct(block))    msgid=[baseid,':checkinarg'];    result='first input argument must be a block structure';    error(msgid,result);  end    if (~isnumeric(line_numbers))    msgid=[baseid,':checkinarg'];    result='second input argument must be numeric';    error(msgid,result);  end  if (line_numbers>block.n_lines)    msgid=[baseid,':checkinarg'];    result='line numbers given larger than block length';    error(msgid,result);      end  block.txt_lines(line_numbers)=[];  block.n_lines=block.n_lines-length(line_numbers);  block.edited = 1;      

⌨️ 快捷键说明

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