Mercurial > hg > ishara
view signals/@sigbase/sigbase.m @ 1:289445d368a7
import.
author | samer |
---|---|
date | Wed, 19 Dec 2012 22:46:05 +0000 |
parents | |
children |
line wrap: on
line source
classdef sigbase < signal properties (GetAccess=protected, SetAccess=immutable) chans fs end methods function s=sigbase(channels,rate) if nargin<2, rate=nan; end if nargin<1, channels=nan; end s.chans=channels; s.fs=rate; end function c=channels(s), c=s.chans; end function c=rate(s), c=s.fs; end end end