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

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cc4b1211e677
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{:});