Mercurial > hg > camir-aes2014
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirsimatrix/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 mm = set(m,varargin) | |
2 % SET Set properties for the MIRsimatrix object | |
3 % and return the updated object | |
4 | |
5 propertyArgIn = varargin; | |
6 graph = m.graph; | |
7 branch = m.branch; | |
8 d = mirdata(m); | |
9 while length(propertyArgIn) >= 2, | |
10 prop = propertyArgIn{1}; | |
11 val = propertyArgIn{2}; | |
12 propertyArgIn = propertyArgIn(3:end); | |
13 switch prop | |
14 case 'Graph' | |
15 graph = val; | |
16 case 'Branch' | |
17 branch = val; | |
18 otherwise | |
19 d = set(d,prop,val); | |
20 end | |
21 end | |
22 mm.diagwidth = m.diagwidth; | |
23 mm.view = m.view; | |
24 mm.similarity = m.similarity; | |
25 mm.graph = graph; | |
26 mm.branch = branch; | |
27 mm = class(mm,'mirsimatrix',d); |