yhzappstr.m
来自「信号实验常用的simulink模型和mfile,可直接在matlan下运行。」· M 代码 · 共 25 行
M
25 行
function outstr = yhzappstr(instr,app)
% APPSTR Append string to callback string.
% STR1 = APPSTR(STR,APP) appends the string APP to the string
% STR. If STR has greater than length 0, and no semicolon is
% found in suffix (at the end of STR followed by spaces), a
% comma is appended first.
% Copyright (c) 1988-97 by The MathWorks, Inc.
% $Revision: 1.5 $
% T. Krauss 11/21/94
if length(instr) == 0
outstr = app;
else
ind = length(instr);
sep = ' '; % default separator
while (instr(ind)==' ')
ind = ind-1;
end
if instr(ind)~=';'
sep = ','; % separator
end
outstr = [instr sep app];
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?