Mercurial > hg > ishara
comparison general/funutils/scanner_add_plotter.m @ 26:8f4a21082c45
It was wrong. Now it is right.
author | samer |
---|---|
date | Sat, 19 Jan 2013 13:09:31 +0000 |
parents | fbc0540a9208 |
children | beb8a3f4a345 |
comparison
equal
deleted
inserted
replaced
25:79038cbcce00 | 26:8f4a21082c45 |
---|---|
10 % -> (S,X->X) ~'new scanning function'. | 10 % -> (S,X->X) ~'new scanning function'. |
11 | 11 |
12 function f1=scanner_add_plotter(f,opts) | 12 function f1=scanner_add_plotter(f,opts) |
13 opts=prefs('draw',0,varargin{:}); | 13 opts=prefs('draw',0,varargin{:}); |
14 if ~opts.draw, f1=f; else ps=pauser(opts); f1=@g; end | 14 if ~opts.draw, f1=f; else ps=pauser(opts); f1=@g; end |
15 function y1=g(y,x), y1={f(y,x),i}; opts.plotfn(x,y,y1); ps(); end | 15 function y1=g(y,x), y1=f(y,x); opts.plotfn(x,y,y1); ps(); end |
16 end | 16 end |