comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirkeysom/set.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 cc = set(c,varargin)
2 % SET Set properties for the MIRchromagram object
3 % and return the updated object
4
5 propertyArgIn = varargin;
6 d = mirdata(c);
7 d = set(d,'Title',get(c,'Title'),'Abs',get(c,'Abs'),'Ord',get(c,'Ord'));
8 while length(propertyArgIn) >= 2,
9 prop = propertyArgIn{1};
10 val = propertyArgIn{2};
11 propertyArgIn = propertyArgIn(3:end);
12 switch prop
13 case 'Weight'
14 d = set(d,'Data',val);
15 otherwise
16 d = set(d,prop,val);
17 end
18 end
19 cc = class(struct,'mirkeysom',d);