gusucode.com > 信号处理工具箱 - signal源码程序 > signal\signal\siggui\private\appstr.m
function outstr = appstr(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-98 by The MathWorks, Inc. % $Revision: 1.1 $ % 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