diff signals/@sigreclock/sigreclock.m @ 1:289445d368a7

import.
author samer
date Wed, 19 Dec 2012 22:46:05 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/signals/@sigreclock/sigreclock.m	Wed Dec 19 22:46:05 2012 +0000
@@ -0,0 +1,17 @@
+classdef sigreclock < signal
+	properties (GetAccess=private, SetAccess=immutable)
+		fs
+		sig
+	end
+	methods
+		function s=sigreclock(rate,sig)
+			s.fs=rate;
+			s.sig=sig;
+		end
+
+		function s=tostring(sig), s=sprintf('reclock(%g,%s)',sig.rate,tostring(sig.sig)); end
+		function s=construct(sig), s=construct(sig.sig); end
+		function c=channels(s), c=channels(s.sig); end
+		function c=rate(s), c=s.fs; end
+	end
+end