?? ft_uncomment_lines_in_block.m
字號:
%--------------------------------------------------------------------- % function [block] = FT_uncomment_lines_in_block(block,line_numbers)% % Removes all comment signs from selected lines in block.%% block: block structure% line_numbers: vector of integers, specifying lines to be uncommented%% Part of the SimTools package% Andreas Freise 22.05.08 afreise@googlemail.com%--------------------------------------------------------------------- function [block] = FT_uncomment_lines_in_block(block,line_numbers) baseid='FT_uncomment_in_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 for i=line_numbers block.txt_lines(i)={FT_uncomment_line(cell2mat(block.txt_lines(i)))}; end block.edited = 1;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -