samer@1: classdef siglzcat < signal samer@1: properties (GetAccess=private, SetAccess=immutable) samer@1: head samer@1: tail samer@1: end samer@1: methods samer@1: function s=siglzcat(head,tail) samer@1: if isnan(channels(head)), error('First signal to siglzcat must have determinate channels'); end samer@1: s.head=head; samer@1: s.tail=tail; samer@1: end samer@1: samer@1: function s=tostring(sig) samer@1: s=sprintf('%s > %s',tostring(sig.head),tostring(sig.tail)); samer@1: end samer@1: samer@1: function c=rate(s), c=rate(s.head); end samer@1: function c=channels(s), c=channels(s.head); end samer@1: end samer@1: end