comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirscalar/mirscalar.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function s = mirscalar(orig,varargin)
2 % s = mirscalar(x,n) creates a scalar object
3
4 if nargin == 0
5 orig = [];
6 end
7 if iscell(orig)
8 orig = orig{1};
9 end
10 if isa(orig,'mirscalar')
11 s.mode = orig.mode;
12 s.legend = orig.legend;
13 s.parameter = orig.parameter;
14 else
15 s.mode = [];
16 s.legend = '';
17 s.parameter = struct;
18 end
19 s = class(s,'mirscalar',mirdata(orig));
20 s = purgedata(s);
21 s = set(s,'Pos',{},'Abs','Temporal position of frames','Ord','Value',varargin{:});