annotate arrows/scope.m @ 6:0ce3c2070089
Removed duplicate code and fixed doc in timed_action.
author |
samer |
date |
Mon, 14 Jan 2013 14:33:37 +0000 |
parents |
672052bd81f8 |
children |
|
rev |
line source |
samer@0
|
1 % scope - arrow to create scrolling plot of real valued signals
|
samer@0
|
2 %
|
samer@0
|
3 % scope ::
|
samer@0
|
4 % W:natural ~'width of plot in samples',
|
samer@0
|
5 % -> arrow({[[N,1]]}, {}, pair([[N,W]],pair(empty,empty))).
|
samer@0
|
6 %
|
samer@0
|
7 % If input vectors are N dimensional, this will plot
|
samer@0
|
8 % N lines showing their history over the last W samples.
|
samer@0
|
9
|
samer@0
|
10
|
samer@0
|
11 function b=scope(width,varargin)
|
samer@0
|
12 b=awindow(width,nan)*arr(@transpose)*plotter(varargin{:});
|